thauber / django-schedule

A calendaring app for Django. It is now stable, Please feel free to use it now. Active development has been taken over by bartekgorny.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`ImportError: cannot import name execute_manager`

eddie-dunn opened this issue · comments

commented

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