Django

Code

Ticket #2486 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

Capitalize "?P" in redirect_to example in /documentation/generic_views/

Reported by: umbrae@gmail.com Assigned to: jacob
Milestone: Component: Documentation
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

example breaks because P is not capitalized in redirect_to example in the docs:

urlpatterns = patterns('django.views.generic.simple',
    ('^foo/(?p<id>\d+)/$', 'redirect_to', {'url': '/bar/%(id)s/'}),
)

should be:

urlpatterns = patterns('django.views.generic.simple',
    ('^foo/(?P<id>\d+)/$', 'redirect_to', {'url': '/bar/%(id)s/'}),
)

http://www.djangoproject.com/documentation/generic_views/

Attachments

Change History

08/04/06 20:49:26 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(In [3526]) Fixed #2486 -- Fixed typo in docs/generic_views.txt. Thanks, umbrae@gmail.com


Add/Change #2486 (Capitalize "?P" in redirect_to example in /documentation/generic_views/)




Change Properties
Action