3-2配置表单页面跟学错误
来源:3-2 配置表单页面
YOUNGFOREVER
2017-10-10
我的环境是Mac os。
跟着这节视频,装完mysql-python,run manage.py task后,报错。
Failed to get real commands on module "djangostart": 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/taylor/.virtualenvs/test/lib/python2.7/site-packages/django/__init__.py", line 17, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/Users/taylor/.virtualenvs/test/lib/python2.7/site-packages/django/conf/__init__.py", line 55, in __getattr__
self._setup(name)
File "/Users/taylor/.virtualenvs/test/lib/python2.7/site-packages/django/conf/__init__.py", line 43, in _setup
self._wrapped = Settings(settings_module)
求解决!。。
2回答
-
YOUNGFOREVER
提问者
2017-10-10
在项目根目录下,进入terminal,运行
python manage.py makemigrations,
python manage.py migrate
执行成功了,跟着教程中在pycharm里run manage.py task报错,不知道为什么。。
00 -
YOUNGFOREVER
提问者
2017-10-10
此图是我的项目结构012017-10-11
相似问题