What's new? | Help | Directory | Sign in
Google
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"""
URLs for entries in a weblog.

"""

from django.conf.urls.defaults import *
from django.views.generic import date_based

from coltrane.models import Entry


entry_info_dict = {
'queryset': Entry.live.all(),
'date_field': 'pub_date',
}


urlpatterns = patterns('',
url(r'^$',
date_based.archive_index,
entry_info_dict,
name='coltrane_entry_archive_index'),
url(r'^(?P<year>\d{4})/$',
date_based.archive_year,
dict(entry_info_dict, make_object_list=True),
name='coltrane_entry_archive_year'),
url(r'^(?P<year>\d{4})/(?P<month>\w{3})/$',
date_based.archive_month,
entry_info_dict,
name='coltrane_entry_archive_month'),
url(r'^(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\d{2})/$',
date_based.archive_day,
entry_info_dict,
name='coltrane_entry_archive_day'),
url(r'^(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\d{2})/(?P<slug>[-\w]+)/$',
date_based.object_detail,
dict(entry_info_dict, slug_field='slug'),
name='coltrane_entry_detail'),
)
Show details Hide details

Change log

r77 by ubernostrum on Jun 12, 2008   Diff
Update moderation options and add public
views of tagged links
Go to: 
Project members, sign in to write a code review

Older revisions

r67 by ubernostrum on Sep 05, 2007   Diff
Shuffle stuff in preparation for
packaging
r44 by ubernostrum on Aug 19, 2007   Diff
Correcting a typo in entries URLConf
r40 by ubernostrum on Jul 15, 2007   Diff
Add archive_index views and remove
prefixes from modular URLConfs
All revisions of this file

File info

Size: 1488 bytes, 39 lines