Thanks for the suggestion! This code came from the basicApps collection, so I'm not sure why they're using a Word regex to match the day, I'm going to try changing that to Digit.
However, I did remove the underscore from my slug, so now it's just 'secondPost', and I get the same error. I also tried deleting all the *.pyc files, because I'm a little concerned about the re-ordering of the error message, although maybe that's nothing. On Nov 21, 9:24 am, "Alex Koshelev" <[EMAIL PROTECTED]> wrote: > You have an underscore in slug - "second_post" but your regex doesn't allow > it - "[-\w]+". I think it is the problem. > And why you did you choose "\w" for day? > > On Fri, Nov 21, 2008 at 17:16, goblue0311 <[EMAIL PROTECTED]> wrote: > > > Hi all: > > > I'm receiving this error: > > > #************************************* > > NoReverseMatch at /blog/ > > Reverse for 'blog_detail' with arguments '()' and keyword arguments > > '{'year': 2008, 'slug': u'second_post', 'day': 21, 'month': 'nov'}' > > not found." > > #************************************* > > > when I try to call this function from views.py: > > > #************************************* > > def post_list(request, page=0): > > queryset = Post.objects.published() > > > for item in queryset: > > print item.get_absolute_url() > > > return list_detail.object_list( > > request, > > queryset, > > paginate_by = 20, > > page = page, > > ) > > #************************************* > > > with this urls.py: > > > #************************************* > > url(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(? > > P<slug>[-\w]+)/$', > > view=blog_views.post_detail, > > name='blog_detail'), > > #************************************* > > > This may be an odd thing to do, but I'm trying to debug an issue where > > my blog_index view doesn't let me see the detailed view for any of the > > blog entries. In any case, I think my URLconf and model definition of > > get_absolute_url( ) are aligned, but maybe that's not the case. > > > Suggestions? > > > Thanks! > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---