Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name execute_manager #58

Open
eddie-dunn opened this issue Jul 25, 2016 · 1 comment
Open

ImportError: cannot import name execute_manager #58

eddie-dunn opened this issue Jul 25, 2016 · 1 comment

Comments

@eddie-dunn
Copy link

When attempting to try the stable version as per the wiki:

% python manage.py syncdb
Traceback (most recent call last):
  File "manage.py", line 2, in <module>
    from django.core.management import execute_manager
ImportError: cannot import name execute_manager

execute_manager is deprecated in newer versions of Django.

@FlorinTar
Copy link

FlorinTar commented Apr 21, 2017

Replace the contents of manage.py with the following (from a new django 1.6 project).
#!/usr/bin/env python
import os
import sys

if name == "main":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")

from django.core.management import execute_from_command_line

execute_from_command_line(sys.argv)

Courtesy of stack!
http://stackoverflow.com/questions/18048232/satchmo-clonesatchmo-py-importerror-cannot-import-name-execute-manager#19993247

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants