#21137: Documentation example of how to use include and pattern lists to
refactor
urlconfs with repeated path prefixes
--------------------------------------+--------------------
Reporter: debo | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
This was motivated by this gist by David Wolever:
https://gist.github.com/wolever/6603290#file-nested_urls-py
I've seen this antipattern in enough projects now that I thought it might
be nice to explicitly call it out in the docs.
I've made the doc edit in this branch:
https://github.com/MichaelDiBernardo/django/tree/add_urlconf_refactoring_example
--
Ticket URL: <https://code.djangoproject.com/ticket/21137>
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/047.7e8d9b7b9c8286ce1d487cdb6b16048d%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.