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

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33423>
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/049.1a4adee09d2c84d54f629e28012bcffc%40djangoproject.com.

Reply via email to