Question

No module named django.core.management

  • Posted 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?
Subscribe
Share

Whilst following instructions: Step 8 in How To Install and Configure Django with Postgres, Nginx, and Gunicorn


Submit an 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.

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

$ python manage.py syncdb

Needs to be $ sudo python manage.py syncdb