If you addfrom django.conf import settingssettings.configure()to setup.py it will fix the error you are getting.