Report this

What is the reason for this report?

No module named django.core.management

Posted on July 26, 2014

From $ python manage.py syncdb gives Error message: File “manage.py”, line 8, in <module> from django.core.management import execute_from_command_line ImportError: No module named django.core.management

  1. How do I update Django packages in virtualenv?
  2. Shouldn’t django.core.management be part of Django core?


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

$ python manage.py syncdb

Needs to be $ sudo python manage.py syncdb

I had the same problem but when I run python manage.py runserver localhost:port

I have changed the above to:

sudo python manage.py runserver localhost:port

It works :) :)

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.