#27362: Omitting default_app_config in __init__.py happens too easily.
-------------------------------------+-------------------------------------
     Reporter:  Thomas Güttler       |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  Core (Other)         |                  Version:  1.10
     Severity:  Normal               |               Resolution:  needsinfo
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Thomas Güttler):

 We use this test to unsure that the same error does happen again:

 {{{

     def test_app_config_registered(self):
         for app_config in apps.get_app_configs():
             if not app_config.__module__=='django.apps.config':
                 # This app has an own AppConfig class registered: ok
                 continue
             apps_module_path='%s.apps' % app_config.name
             try:
                 import_module(apps_module_path)
             except ImportError:
                 # No module called "apps": ok
                 continue
             raise AssertionError('%s exists, but the registry
 (apps.get_app_configs()) contains the base class. Please use dotted python
 path to AppConfig in INSTALLED_APPS or use default_app_config in
 __init__.py' %
                              (apps_module_path))

 }}}

 I  guess this can't be integrated into django.

--
Ticket URL: <https://code.djangoproject.com/ticket/27362#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 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/065.4b3d4cfc7dd16d150054ff07cb0498ff%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to