【发布时间】:2016-08-21 01:06:48
【问题描述】:
我在我的 mac 旁边安装了 python 2.7。我有一个使用 Django v1.9.4 运行的项目。
不幸的是,manage.py runserver 在运行失败时抛出错误,因为它找不到名为服务的模块。
从外壳:
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
utility.execute()
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 327, in execute
django.setup()
File "/Library/Python/2.7/site-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Library/Python/2.7/site-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/Library/Python/2.7/site-packages/django/apps/config.py", line 90, in create
module = import_module(entry)
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named services
我想知道这里应该做什么来安装这个模块。
【问题讨论】:
-
你的
settings.INSTALLED_APPS是什么样的?
标签: python django python-2.7 backend