Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #16910 -- Misleading regex in urlpatterns inclusion docs.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16893 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 642620897db5f29f6081cd5b112b32f42e8fe13e 1 parent 1631e13
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
@@ -465,8 +465,8 @@ directly the pattern list as returned by `patterns`_ instead. For example::
465 465
     from django.conf.urls import patterns, url, include
466 466
 
467 467
     extra_patterns = patterns('',
468  
-        url(r'reports/(?P<id>\d+)/$', 'credit.views.report', name='credit-reports'),
469  
-        url(r'charge/$', 'credit.views.charge', name='credit-charge'),
  468
+        url(r'^reports/(?P<id>\d+)/$', 'credit.views.report', name='credit-reports'),
  469
+        url(r'^charge/$', 'credit.views.charge', name='credit-charge'),
470 470
     )
471 471
 
472 472
     urlpatterns = patterns('',

0 notes on commit 6426208

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