0

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!

Matthias
  • 10,297
  • 5
  • 38
  • 43
will_am88
  • 3
  • 2

2 Answers2

0

As per the Django tutorial, you have to change into the outer Django_Project directory when you execute the runserver command.

Talvalin
  • 7,377
  • 2
  • 27
  • 40
0

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

Community
  • 1
  • 1
Rajeev
  • 39,163
  • 71
  • 171
  • 269