#18845: Runtime error in setting.py causes silent exception and empty apps list
-------------------------------------+-------------------------------------
     Reporter:  ac@…                 |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Core (Management     |                  Version:  1.4
  commands)                          |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:  management           |             Triage Stage:  Accepted
  installed apps settings exception  |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Anders Hovmöller):

 This bug is not fixed. I'm not totally sure how to actually trigger it
 though, but I'm trying to help someone with this issue and it's not going
 well!

 There's a bunch of people with this problem too:
 https://stackoverflow.com/questions/17804743/django-admin-py-unknown-
 command-collectstatic

 I can fake trigger this by adding `import foo` inside
 `ManagementUtility.execute`:

 {{{
         try:
             import foo
             settings.INSTALLED_APPS
         except ImproperlyConfigured as exc:
             self.settings_exception = exc
         except ImportError as exc:
             self.settings_exception = exc
 }}}

 Now I get the silent failure.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18845#comment:6>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.498518c78c8ad3619731ca8e55e944a1%40djangoproject.com.

Reply via email to