Runtime error in setting.py causes silent exception and empty apps list
|Reported by:||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||1.4|
|Severity:||Normal||Keywords:||management installed apps settings exception|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I had a runtime error in my settings.py file that wasn't being reported.
django/config/init.py : 94 was silently re-throwing, and
django/core/management/init.py : 103 was setting the INSTALLED_APPS list to an empty array.
I suggest the following changes:
django/config/init.py : 94 : except Exception, e:
django/core/management/init.py : 103 : sys.stdout.write('%s\n' % e)
This will result in the following printed on execution of any management command:
Could not import settings '<project>.settings' (Is it on sys.path?): <exception description here>