Got this error running tests on a new project and couldn't figure out what the problem was. Found a similar problem with someone using Jenkins on SO who found the real error by running:
python manage.py help
Turns out I had a missing import in my settings file that immediately revealed itself by running the help command.
Share on Twitter Share on Facebook