diff --git a/django/views/generic/simple.py b/django/views/generic/simple.py index 4571ef8605..325288d52f 100644 --- a/django/views/generic/simple.py +++ b/django/views/generic/simple.py @@ -18,7 +18,7 @@ def redirect_to(request, url, **kwargs): ``/foo//`` to ``/bar//``, you could use the following URLconf:: urlpatterns = patterns('', - ('^foo/(?p\d+)/$', 'django.views.generic.simple.redirect_to', {'url' : '/bar/%(id)s/'}), + ('^foo/(?P\d+)/$', 'django.views.generic.simple.redirect_to', {'url' : '/bar/%(id)s/'}), ) If the given url is ``None``, a HttpResponseGone (410) will be issued.