Documentation example of how to use include and pattern lists to refactor urlconfs with repeated path prefixes
|Reported by:||debo||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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