Solved Python error : from django.core.management import execute_manager
Problem
C:\dev\browsershots-psycopg2.git\shotserver\shotserver04>python manage.py syncdb Traceback (most recent call last): File "manage.py", line 26, in <module> from django.core.management import execute_manager ImportError: cannot import name execute_manager
Explanations
execute_manager
was deprecated in Django 1.4 as part of the project layout refactor and was removed in 1.6 per the deprecation timeline: https://docs.djangoproject.com/en/1.4/internals/deprecation/#id3
Solution
Use the following layout if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
Note: After you do your fix, you might need to re-install the module with $> sudo python setup.py install
what should be the project name here?
You write it as above with the curly braces.