#33423: Load urls from function in URLResolver
-----------------------------+--------------------------------------
     Reporter:  William      |                    Owner:  nobody
         Type:  New feature  |                   Status:  new
    Component:  Core (URLs)  |                  Version:  4.0
     Severity:  Normal       |               Resolution:
     Keywords:  urls         |             Triage Stage:  Unreviewed
    Has patch:  1            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+--------------------------------------
Changes (by William):

 * 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>
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/064.03957eda8a1b610e07fb3ca5a8e04b81%40djangoproject.com.

Reply via email to