#34812: Validate that URLConf modules contain a urlpatterns entry
---------------------------------------+------------------------
Reporter: The Epic | Owner: nobody
Type: New feature | Status: new
Component: Core (URLs) | Version: 4.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------+------------------------
Hey everyone. I've seen a few people on Discord mention that Django
reported circular imports due to their URL configs, and in at least one
case the problem was that the user made a typo in `urlpatterns`.
I think it would be grand if Django checked for the existence of the
`urlpatterns` attribute when passing a module to `include` and raised a
clearer Exception if it is absent.
--
Ticket URL: <https://code.djangoproject.com/ticket/34812>
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/0107018a5afd16ae-23a0d154-c325-432c-903a-9760cc4a1253-000000%40eu-central-1.amazonses.com.