run manage.py Task出错
来源:5-1 django admin介绍
enzyme_
2018-08-06
Failed to get real commands on module "mxonline": python process died with code 1: Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pycharm/_jb_manage_tasks_provider.py", line 25, in <module>
django.setup()
File "/Users/gezhou/.virtualenvs/mxonline/lib/python3.6/site-packages/django/__init__.py", line 19, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/Users/gezhou/.virtualenvs/mxonline/lib/python3.6/site-packages/django/conf/__init__.py", line 57, in __getattr__
self._setup(name)
File "/Users/gezhou/.virtualenvs/mxonline/lib/python3.6/site-packages/django/conf/__init__.py", line 42, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
搜了一圈没找见
1回答
-
bobby
2018-08-08
你截图我看看具体的错误栈
022018-08-10
相似问题