#33207: django.apps.apps.get_model() does not allow namespaced (PEP 420) apps to
get a model
------------------------------+--------------------------------------
Reporter: Jonas L. | Owner: nobody
Type: Bug | Status: closed
Component: Core (Other) | Version: 3.2
Severity: Normal | Resolution: invalid
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 Jonas L.):
Replying to [comment:1 Mariusz Felisiak]:
> Thanks for the ticket, however Django doesn't support namespace
packages, see [https://groups.google.com/g/django-
developers/c/GVHMH2ciAnk/m/vbIPbZuSBQAJ a discussion on the mailing list].
It's also
[https://docs.djangoproject.com/en/stable/topics/auth/customizing/#substituting-a
-custom-user-model documented] that `AUTH_USER_MODEL` is ''"dotted pair
describes the name of the Django app ... and the name of the Django model
that you wish to use as your user model"''.
In that case the following documentation is misleading
https://docs.djangoproject.com/en/3.2/ref/applications/#namespace-package
I understood that if I meet the requirements, using a namespace is
possible. Or maybe I didn't understand it right ?
--
Ticket URL: <https://code.djangoproject.com/ticket/33207#comment:2>
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/064.7e429475e32ca237ba949e00c759aedb%40djangoproject.com.