On Tue, 2008-09-16 at 14:33 -0700, brian mckinney wrote: > I'm having a very similar problem. This code worked fine pre-Django > 1.0, now I am really struggling to find the problem. > > url.py : > > url(r'^(?P<year>\d{4})/$', blog_views.post_archive_year, name = > "blog_archive_year"), > > views.py > > def post_archive_year(request, year): > return date_based.archive_year(request, year = 2007, queryset = > Post.objects.published(), date_field = 'publish', make_object_list = > True) > > > Error: > > Caught an exception while rendering: Reverse for 'blog_index' with > arguments '()' and keyword arguments '{}' not found
Something in your code is trying to do a reverse lookup (either by calling reverse() explicitly or using the {% url %} template tag) for a URL name or view called "blog_index". That isn't in the urls.py line you listed, so either you've left something out or your code is trying to look up a non-existent URL (which is an error in your code). Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---