#18845: Runtime error in setting.py causes silent exception and empty apps list -------------------------------------+------------------------------------- Reporter: ac@… | Owner: nobody Type: Bug | Status: new Component: Core (Management | Version: 1.4 commands) | Keywords: management installed Severity: Normal | apps settings exception Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+------------------------------------- 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[[BR]] 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:[[BR]] 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> Thank you -- Ticket URL: <https://code.djangoproject.com/ticket/18845> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.