#21737: ImproperlyConfigured hidden, which causes hard to debug errors
------------------------------------------------+------------------------
               Reporter:  apollo13              |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Uncategorized         |        Version:  master
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 Putting an `AppConfig` without a `name` attribute into `INSTALLED_APPS`
 raises this nice error:
 {{{
 Traceback (most recent call last):
   File "./manage.py", line 10, in <module>
     execute_from_command_line(sys.argv)
   File
 "/home/florian/sources/django.git/django/core/management/__init__.py",
 line 426, in execute_from_command_line
     utility.execute()
   File
 "/home/florian/sources/django.git/django/core/management/__init__.py",
 line 418, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File
 "/home/florian/sources/django.git/django/core/management/__init__.py",
 line 280, in fetch_command
     commands = get_commands()
   File "/home/florian/.virtualenvs/conticki/lib/python3.4/functools.py",
 line 427, in wrapper
     result = user_function(*args, **kwds)
   File
 "/home/florian/sources/django.git/django/core/management/__init__.py",
 line 118, in get_commands
     app_configs = apps.get_app_configs()
   File "/home/florian/sources/django.git/django/apps/registry.py", line
 121, in get_app_configs
     self.check_ready()
   File "/home/florian/sources/django.git/django/apps/registry.py", line
 115, in check_ready
     raise RuntimeError("App registry isn't ready yet.")
 RuntimeError: App registry isn't ready yet.
 }}}

 This is due to the fact that `d.c.management` ignores
 `ImproperlyConfigured` from `django.setup`

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21737>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.78c345197dd947dc1d61b528b3abcb84%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to