django-schedule icon indicating copy to clipboard operation
django-schedule copied to clipboard

`ImportError: cannot import name execute_manager`

Open eddie-dunn opened this issue 8 years ago • 1 comments

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.

eddie-dunn avatar Jul 25 '16 10:07 eddie-dunn

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

FlorinTar avatar Apr 21 '17 10:04 FlorinTar