Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.3.X] Fixed #16910 -- Misleading urlpatterns docs regex example.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16892 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a084a07ebe8357c5a05ad03c478c89c2e358a398 1 parent e3bc259
Paul McMillan authored September 22, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  docs/topics/http/urls.txt
4  docs/topics/http/urls.txt
@@ -436,8 +436,8 @@ directly the pattern list as returned by `patterns`_ instead. For example::
436 436
     from django.conf.urls.defaults import *
437 437
 
438 438
     extra_patterns = patterns('',
439  
-        url(r'reports/(?P<id>\d+)/$', 'credit.views.report', name='credit-reports'),
440  
-        url(r'charge/$', 'credit.views.charge', name='credit-charge'),
  439
+        url(r'^reports/(?P<id>\d+)/$', 'credit.views.report', name='credit-reports'),
  440
+        url(r'^charge/$', 'credit.views.charge', name='credit-charge'),
441 441
     )
442 442
 
443 443
     urlpatterns = patterns('',

0 notes on commit a084a07

Please sign in to comment.
Something went wrong with that request. Please try again.