Fixed #2486 -- Fixed typo in docs/generic_views.txt. Thanks, umbrae@gmail.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3526 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
320c10cb19
commit
0c8c42af7f
|
@ -127,7 +127,7 @@ If the given URL is ``None``, Django will return an ``HttpResponseGone`` (410).
|
|||
This example redirects from ``/foo/<id>/`` to ``/bar/<id>/``::
|
||||
|
||||
urlpatterns = patterns('django.views.generic.simple',
|
||||
('^foo/(?p<id>\d+)/$', 'redirect_to', {'url': '/bar/%(id)s/'}),
|
||||
('^foo/(?P<id>\d+)/$', 'redirect_to', {'url': '/bar/%(id)s/'}),
|
||||
)
|
||||
|
||||
This example returns a 410 HTTP error for requests to ``/bar/``::
|
||||
|
|
Loading…
Reference in New Issue