Question

No module named django.core.management

Posted July 26, 2014 22.3k views

From $ python manage.py syncdb
gives Error message:
File “manage.py”, line 8, in <module>
from django.core.management import executefromcommand_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?
1 comment

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.

×
2 answers

$ 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 :) :)

Submit an Answer