--
Ticket URL: <https://code.djangoproject.com/ticket/33423>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
Old description:
> Instead of immediately raising an error if the {{{urlpatterns}}} in the
> loaded module is not a list, it would instead check if there is a
> {{{get_urls}}} function in the module and call it. If there is no such
> function or it returns something other then a list raise the error, if it
> returns a list then use that instead of raising an error.
New description:
Instead of immediately raising an error if the {{{urlpatterns}}} in the
loaded module is not a list, it would instead check if there is a
{{{get_urls}}} function in the module and call it. If there is no such
function or it returns something other then a list raise the error, if it
returns a list then use that instead of raising an error.
[https://github.com/django/django/pull/15293 PR]
--
--
Ticket URL: <https://code.djangoproject.com/ticket/33423#comment:1>
* status: new => closed
* resolution: => wontfix
Comment:
Thanks for this proposition, however I don't think it's common enough to
create URLs at runtime. As far as I'm aware, in other cases function
should not be necessary.
Please first start a discussion on the DevelopersMailingList, where you'll
reach a wider audience and see what other think, and
[https://docs.djangoproject.com/en/stable/internals/contributing/bugs-and-
features/#requesting-features follow the guidelines with regards to
requesting features]. Don't forget to explain your use case.
--
Ticket URL: <https://code.djangoproject.com/ticket/33423#comment:2>