python ./store/manage.py runserver
當我跑這我得到的錯誤是這樣的:蟒蛇./store/manage.py RUNSERVER
$ python ./store/manage.py runserver
Unhandled exception in thread started by <function wrapper at 0x0000000003AE6978>
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\django-1.10.4-py2.7.egg\django\utils\autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "C:\Python27\lib\site-packages\django-1.10.4-py2.7.egg\django\core\management\commands\runserver.py", line 113, in inner_run
autoreload.raise_last_exception()
File "C:\Python27\lib\site-packages\django-1.10.4-py2.7.egg\django\utils\autoreload.py", line 249, in raise_last_exception
six.reraise(*_exception)
File "C:\Python27\lib\site-packages\django-1.10.4-py2.7.egg\django\utils\autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "C:\Python27\lib\site-packages\django-1.10.4-py2.7.egg\django\__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Python27\lib\site-packages\django-1.10.4-py2.7.egg\django\apps\registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "C:\Python27\lib\site-packages\django-1.10.4-py2.7.egg\django\apps\config.py", line 90, in create
module = import_module(entry)
File "C:\Python27\lib\importlib\__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named polls
你爲什麼從父目錄運行,而不是在內部存儲? –
你的項目的文件結構是什麼? – Riley