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
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
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+)
3 matches
Mail list logo