#32285: AppConfig: app_label with dot should raise exception
------------------------------------------------+------------------------
Reporter: Federico Capoano | Owner: nobody
Type: Bug | Status: new
Component: Core (System checks) | Version: 3.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
------------------------------------------------+------------------------
Follow up to [https://groups.google.com/g/django-
developers/c/3cbMviLrSzI/m/KEXlMDD3AAAJ mailing list discussion].
Setting the `app_label` of an `AppConfig` object is allowed and fails
later on during migrations (`./manage.py migrate`) with `(too many values
to unpack)`.
It took me a couple of minutes to figure out what was wrong, but it may
not be so obvious to an inexperienced user so it may be better to raise a
clearer exception.
Maybe we can use system checks and fail earlier if such a problem is
detected?
--
Ticket URL: <https://code.djangoproject.com/ticket/32285>
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/056.c4c9c4db176039e1620457848d58fe98%40djangoproject.com.