summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-07-19 03:06:28 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-07-19 03:06:28 +0000
commit73ea27ccb0ff4cacb3bc492496d9529aebed2970 (patch)
treeff1d75ee88be304086ef2fc0b8cd3719b64246a9
parent2363af5782deab47d1f3bfab629d986191a27502 (diff)
Fixed bug in [191]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@192 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--docs/overview.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/overview.txt b/docs/overview.txt
index d21ce88081..a7e0f1c14c 100644
--- a/docs/overview.txt
+++ b/docs/overview.txt
@@ -169,10 +169,10 @@ Reporter/Article example, here's what that might look like::
from django.conf.urls.defaults import *
urlpatterns = patterns('',
- (r'^/articles/(?P\d<year>{4})/$', 'myproject.news.views.articles.year_archive'),
- (r'^/articles/(?P\d<year>{4})/(?P\d<month>{2})/$', 'myproject.news.views.articles.month_archive'),
- (r'^/articles/(?P\d<year>{4})/(?P\d<month>{2})/$', 'myproject.news.views.articles.month_archive'),
- (r'^/articles/(?P\d<year>{4})/(?P\d<month>{2})/(?P<day>\d+)/$', 'myproject.news.views.articles.article_detail'),
+ (r'^/articles/(?P<year>\d{4})/$', 'myproject.news.views.articles.year_archive'),
+ (r'^/articles/(?P<year>\d{4})/(?P<month>\d{2})/$', 'myproject.news.views.articles.month_archive'),
+ (r'^/articles/(?P<year>\d{4})/(?P<month>\d{2})/$', 'myproject.news.views.articles.month_archive'),
+ (r'^/articles/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d+)/$', 'myproject.news.views.articles.article_detail'),
)
The code above maps URLs, as regular expressions, to the location of Python