Re: django.core.urlresolvers.reverse capturing group before include behavior

2011-07-18 Thread Squeesh
Both* -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/9r8bIyO8WyUJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from

Re: django.core.urlresolvers.reverse capturing group before include behavior

2011-07-18 Thread Squeesh
Thanks Chang.Jian, Goth test_url = reverse('test.views.index', args=['slug']) and test_url = reverse('test.views.index', kwargs={'some_slug': 'slug'}) work as expected... reverse('test:index', args=['slug']) would be the desired syntax, but the other will work fine as a work around. Anyon

django.core.urlresolvers.reverse capturing group before include behavior

2011-07-15 Thread Squeesh
I have run into an issue using reverse() to lookup named urls with capturing groups before an include(). Code: mysite/urls.py from django.conf.urls.defaults import * urlpatterns = patterns('', url(r'^$', 'views.index', name='root'), url(r'^(?P\w+)