请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

run manage.py Task出错

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. 

搜了一圈没找见

正在回答 回答被采纳积分+3

1回答

bobby 2018-08-08 11:35:36

你截图我看看具体的错误栈

0 回复 有任何疑惑可以回复我~
  • 提问者 enzyme_ #1
    老师,我移动错误目录了,把mxonline移动到了apps里面。不过我移动出来也依旧报错,我就重新建了一遍项目
    回复 有任何疑惑可以回复我~ 2018-08-08 15:41:47
  • bobby 回复 提问者 enzyme_ #2
    好的,
    回复 有任何疑惑可以回复我~ 2018-08-10 10:44:09
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信