I'm very first on Django and I have a project from other friend and when I'm going to do manage python runserver 0.0.0.0:8000 I have this error:
Traceback (most recent call last):
File "manage.py", line 14, in <module>
execute_manager(settings)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 457, in execute_manager
setup_environ(settings_mod)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 433, in setup_environ
import_module(project_name)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
ImportError: No module named Django_Project
My python version is Python 2.7.3
Please maybe someone could help me? Thanks!
根据Django教程 ,执行runserver命令时,您必须切换到外部Django_Project目录。
Add you project,Django to python path and then run this command.
To add to python path refer the following link Permanently add a directory to PYTHONPATH
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.