Forums

manage.py broken with "ImportError: cannot import name execute_manger" on Django 1.3

Hi, I've tried resources like this forum and StackOverflow, but can't fix this error I'm getting when trying to run any manage.py command. Line 2 of manage.py can't be executed. Most of them have to do with execute manager being deprecated in 1.4, or the path to Python being wrong (due to not starting the virtualenv or something) but I'm pretty sure that I started and am running this project (for PA staff, project name "barkinggood") on Django 1.3 and running the native PA django, not on virtualenv.

This project is nearing its completion too, and I never used to run into this problem. I can't recall anything that I might have changed recently that would have caused this problem either, so I also don't really know where to start on trying to debug this...

Any suggestions?

Could it be that you have another installation of Django on your path before the system Django? This can happen if you've done a pip install with the --user flag.

Bingo, had an install of Django 1.6 removed with pip uninstall django and now everything works great. (thank you to Giles too!)