mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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:
		| @@ -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/``:: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user