Django

Code

Changeset 282

Show
Ignore:
Timestamp:
07/21/05 13:12:29 (3 years ago)
Author:
jacob
Message:

Updated url dispatch docs to make it more clear that the prefix need not end in a dot

Files:

Legend:

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

    r236 r282  
    2222        (r'^/articles/(?P<year>\d{4})/$', 'myproject.news.views.articles.year_archive'), 
    2323        (r'^/articles/(?P<year>\d{4})/(?P<month>\d{2})/$', 'myproject.news.views.articles.month_archive'), 
    24         (r'^/articles/(?P<year>\d{4})/(?P<month>\d{2})/$', 'myproject.news.views.articles.month_archive'), 
    2524        (r'^/articles/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d+)/$', 'myproject.news.views.articles.article_detail'), 
    2625    ) 
     
    3433        (r'^/articles/(?P<year>\d{4})/$', 'year_archive'), 
    3534        (r'^/articles/(?P<year>\d{4})/(?P<month>\d{2})/$', 'month_archive'), 
    36         (r'^/articles/(?P<year>\d{4})/(?P<month>\d{2})/$', 'month_archive'), 
    3735        (r'^/articles/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d+)/$', 'article_detail'), 
    3836    ) 
     37 
     38.. admonition:: Note 
     39 
     40    More precisely, the actual view function use is ``prefix + "." + 
     41    function_name``; that is, the trailing "dot" does not need to be put in the 
     42    prefix.  Django: saving you time, one keystroke at a time. 
    3943 
    4044Including other URLconfs