in urls.py

r(‘^card/(?P<year>\d{4})/(?P<month>\w{3})(?P<day>\d{2})/(?P<slug>[-\w]+)/$’, ‘card_detail’),

in views.py

def card_detail(request, year, month, day, slug):

# do render

————-

will return dictionary with keys are bracketed names and the values are the parts of the text that matched.

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2011 Web Oom Suffusion theme by Sayontan Sinha
Switch to our mobile site
Top Footer