On Fri, Sep 5, 2008 at 11:01 AM, phred78 <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm stuck with this problem that I can't figure out. Everything was > working, then I went out for lunch and when I came back it stopped > working :S > > It's related to the Entry detail view. Listing is fine but when I try > to open the detail of a certain entry it gives out this error: > > (...) > Request URL: http://127.0.0.1:8000/weblog/2008/09/05/another-one/ > No FlatPage matches the given query. > (...) > > It's not a FlatPage, so I don't really know what it's complaining > about. > > This is my urls.py file: > > [snip] > > urlpatterns = patterns('', > [snip] > > (r'^weblog/(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\d{2})/(?P<slug>[- > \w]+)/$', > 'django.views.generic.date_based.object_detail', entry_info_dict), > > # Show flat pages > (r'', include('django.contrib.flatpages.urls')), > ) >
It looks like the entry detail regex is expecting month to be a 3-character thing (month abbreviation?) but the actual URL you show is a 2-digit number. So the entry detail regex doesn't match and it falls to the flatpages to handle, since that regex looks to be written to take anything not matched by the earlier ones. Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---