#16699: django.core.urlresolvers.reverse failed with complicated regexp
-------------------------+------------------------------
 Reporter:  Natim        |          Owner:  nobody
     Type:  Bug          |         Status:  new
Milestone:               |      Component:  Core (Other)
  Version:  1.3          |       Severity:  Normal
 Keywords:  urlresolver  |   Triage Stage:  Unreviewed
Has patch:  0            |  Easy pickings:  0
    UI/UX:  0            |
-------------------------+------------------------------
 I was using this rule in my project :

     `url(r'^qr/(?P<alias>[a-z0-9-]+)/((?P<size>\d+)/)?$', qrimage,
 name="qrimage"),`

 And it the use of `reverse('qrimage', args['qrkit', 600])` raise

     `Caught NoReverseMatch while rendering: Reverse for 'qrimage' with
 arguments '(u'qrkit', 600)' and keyword arguments '{}' not found.`

 To solve the problem I used :

     `url(r'^qr/(?P<alias>[a-z0-9-]+)/(?P<size>\d+)/$', qrimage,
 name="qrimage"),`

 But then it is not really the same behaviour than the one I wanted.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16699>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to