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

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

0
2
bobby
回复
enzyme_
好的,
2018-08-10
共2条回复

Python3.6+django+xadmin,打造在线教育平台

【毕设】Python 2.7到3.6 完美适配,Django升级2.0

3677 学习 · 4038 问题

查看课程