Cleanup and fix bug when main settings file is not [site]/settings.py