django-schedule
django-schedule copied to clipboard
`ImportError: cannot import name execute_manager`
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.
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