No module named django.core.management

July 26, 2014 7.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
  • Whilst following instructions:
    Step 8 in How To Install and Configure Django with Postgres, Nginx, and Gunicorn

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

Have another answer? Share your knowledge.