我在mac OSX上的虚拟环境中安装了django,但是当我尝试运行“django-admin startproject mysite”时,我收到以下导入错误:
Traceback (most recent call last):
File "/Users/me/djangodjango/ENV/bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File "/Users/me/djangodjango/ENV/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
utility.execute()
File "/Users/me/djangodjango/ENV/lib/python2.7/site-packages/django/core/management/__init__.py", line 303, in execute
settings.INSTALLED_APPS
File "/Users/me/djangodjango/ENV/lib/python2.7/site-packages/django/conf/__init__.py", line 48, in __getattr__
self._setup(name)
File "/Users/me/djangodjango/ENV/lib/python2.7/site-packages/django/conf/__init__.py", line 44, in _setup
self._wrapped = Settings(settings_module)
File "/Users/me/djangodjango/ENV/lib/python2.7/site-packages/django/conf/__init__.py", line 92, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named server_conf.settings.settings_devel_local
如果我尝试“django-admin help”,我会收到相同的错误。有谁知道如何解决这一问题?谢谢!