diff --git a/docs/generic_views.txt b/docs/generic_views.txt index aab878467f..fdab97de27 100644 --- a/docs/generic_views.txt +++ b/docs/generic_views.txt @@ -127,7 +127,7 @@ If the given URL is ``None``, Django will return an ``HttpResponseGone`` (410). This example redirects from ``/foo//`` to ``/bar//``:: urlpatterns = patterns('django.views.generic.simple', - ('^foo/(?p\d+)/$', 'redirect_to', {'url': '/bar/%(id)s/'}), + ('^foo/(?P\d+)/$', 'redirect_to', {'url': '/bar/%(id)s/'}), ) This example returns a 410 HTTP error for requests to ``/bar/``::