我正在开发一个Django项目,我遇到了下面的错误请帮忙。
我尝试使用“django-admin --version”命令检查我的django版本,我在下面遇到了这个错误。
Traceback (most recent call last):
File "/usr/local/bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 328, in execute
django.setup()
File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 86, in create
module = import_module(entry)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named south
答案 0 :(得分:0)
您的south
设置中包含INSTALLED_APPS
,但未安装。
从追溯,看起来好像你正在使用Django 1.7或更高版本,因此不再需要South。您应该在设置中将其从INSTALLED_APPS
中删除。