Hi, > > 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....
Try this in your view where you need this conversion: from django.utils.dates import MONTHS_3_REV month_int = MONTHS_3_REV[month_string] Where month_string is the 3-character month in string format (apr, mar, etc.) -Rajesh D --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---