Django

Code

Changeset 191

Show
Ignore:
Timestamp:
07/18/05 21:22:11 (3 years ago)
Author:
adrian
Message:

Fixed #54 -- Corrected typos in urlconfs in docs/overview. Thanks, james!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/overview.txt

    r148 r191  
    170170 
    171171    urlpatterns = patterns('', 
    172         (r'^/articles/(?P\d{4})/$',                  'myproject.news.views.articles.year_archive'), 
    173         (r'^/articles/(?P\d{4})/(?P\d{2})/$',        'myproject.news.views.articles.month_archive'), 
    174         (r'^/articles/(?P\d{4})/(?P\d{2})/$',        'myproject.news.views.articles.month_archive'), 
    175         (r'^/articles/(?P\d{4})/(?P\d{2})/(?P\d+)/$', 'myproject.news.views.articles.article_detail'), 
     172        (r'^/articles/(?P\d<year>{4})/$', 'myproject.news.views.articles.year_archive'), 
     173        (r'^/articles/(?P\d<year>{4})/(?P\d<month>{2})/$', 'myproject.news.views.articles.month_archive'), 
     174        (r'^/articles/(?P\d<year>{4})/(?P\d<month>{2})/$', 'myproject.news.views.articles.month_archive'), 
     175        (r'^/articles/(?P\d<year>{4})/(?P\d<month>{2})/(?P<day>\d+)/$', 'myproject.news.views.articles.article_detail'), 
    176176    ) 
    177  
    178177 
    179178The code above maps URLs, as regular expressions, to the location of Python