#24430: wildcard matching and reversing of URLs
-----------------------------+--------------------
     Reporter:  eskhool      |      Owner:  nobody
         Type:  New feature  |     Status:  new
    Component:  Core (URLs)  |    Version:  1.7
     Severity:  Normal       |   Keywords:
 Triage Stage:  Unreviewed   |  Has patch:  0
Easy pickings:  0            |      UI/UX:  0
-----------------------------+--------------------
 Example:
 urlpatterns += patterns('',
         (r'^\w+/', include(admin.site.urls),),
 )

 All links generated by the admin site with this url show a 'x'
 for example
 /x/<app_name>/<model_name>/

 instead of the result of the matching wild card 'ABC' from
 ABC/<app_name>/<model_name>

 the problem is that reverse can not know what to put in the wild card
 without having the path or the request as context.

 Solution: add an optional parameter to reverse which is the request and
 the reverse can happen with the context of the request which is found
 acceptable in case the request parameter is not none.

--
Ticket URL: <https://code.djangoproject.com/ticket/24430>
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/050.b8d91d507ca5cdcbbeb47a01579aed7c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to