I'm new at using Django and am learning it now from several books and internet. I run into problems with changing the month_format to 2 digits ( %m = 06 ) instead of 3 chars (%b = jun)
I checked the models.py def get_absolute_url(self): return ('my_entry_detail', (), { 'year': self.my_date.strftime("%Y"), 'month': self.my_date.strftime("%m"), 'day': self.my_date.strftime("%d"), 'slug': self.slug }) #substitute can als be @models.permalink above def get_absolute_url = models.permalink(get_absolute_url) In urls.py it says: (r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+)/ $', 'object_detail', my_info_dict, 'my_entry_detail'), When I change it back to characters everything works. Obviously I'm overlooking something. I went through most other files and searched the internet, but I cannot find the reason wgy it doesn't work. Any advice is welcome. -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.