stranger
unread,Apr 9, 2008, 2:27:06 AM4/9/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
hello group,
I am writing a blog application. I am not using generic view
as I have customized things. Now I wrote a helper.py in which I have
def get_post(year, month, day, slug):
year, month, day = int(year), int(month), int(day)
try:
return Post.objects.get(
pub_date__year=year, pub_date__month=month,
slug__exact=slug)
Now I want my url to be /2008/apr/08 instead of 2008/04/08. Thats
means the 'apr' string coming from url should be converted to 04
integer for comparision. Any help....