Django

Code

Ticket #4101: generic_views.patch

File generic_views.patch, 0.8 kB (added by Collin Grady <cgrady@the-magi.us>, 2 years ago)
  • docs/generic_views.txt

    old new  
    4444       (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/$',               'archive_day',   info_dict), 
    4545       (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$',                                'archive_month', info_dict), 
    4646       (r'^(?P<year>\d{4})/$',                                                    'archive_year',  info_dict), 
    47        (r'^/?$',                                                                  'archive_index', info_dict), 
     47       (r'^$',                                                                  'archive_index', info_dict), 
    4848    ) 
    4949 
    5050As you can see, this URLconf defines a few options in ``info_dict``.