#33013: "AppConfig" subclass imports found in Django 3.2's automatic "AppConfig"
discovery
-------------------------------+--------------------------------------
Reporter: Joseph Wayodi | Owner: nobody
Type: Bug | Status: closed
Component: Core (Other) | Version: 3.2
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Carlton Gibson):
* status: new => closed
* resolution: => wontfix
Comment:
Hi Joseph. Thanks for the additional details.
> If OscarConfig.default is set to False, this attribute gets inherited by
its BasketConfig subclass, and Django finds no default AppConfig subclass,
and ends up using its default AppConfig class. This would require us to
switch to specifying the app in INSTALLED_APPS using only
oscar.apps.basket.apps.BasketConfig. Or for projects using Oscar to
subclass BasketConfig just to set BasketConfig.default to True.
This is the right approach in your case, where you have multiple AppConfig
classes in play. Set `default = False` on the superclass and have users
config the explicit app config they want, or set `default = True` on the
one subclass they need.
It's worth reviewing the discussion on the
[https://github.com/django/django/pull/12310 original PR] where this kind
of thing was discussed.
If you wish to propose a change it would need to go via the
DevelopersMailingList to seek consensus there.
--
Ticket URL: <https://code.djangoproject.com/ticket/33013#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/065.2a035f718579815b3dc89c7216545f8f%40djangoproject.com.