Custom Search

Wednesday, November 30, 2016

python django ImportError: cannot import name execute_manager

Error:
python django ImportError: cannot import name execute_manager

Fix:
a)
Remove following lines from manage.py 
from django.core.management import execute_manager

b)
Then add following lines from manage.py 
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)



1 comment: