hi to all,

im going through the practical django projects and i arrived at the part
where im setting up generic views for the object listing of the categories.
my problem now is that i have the navigation in the base.html which
creates (or should) the url with

    <a href="{% url coltrane_category_list %}">Categories</a>

my urls.categories.py looks like:

    from django.conf.urls.defaults import *
    from coltrane.models import Category

    urlpatterns = patterns('',
         (r'^$', 'django.views.generic.list_detail.object_list',
          { 'queryset': Category.objects.all() }),

         (r'^(?P<slug>[-\w]+)/$',
           'coltrane.views.category_detail'),
    )

imported correctly by the projects urls.py and i created a template
category_list.html and i get the error

    Caught an exception while rendering: Reverse for
    'coltrane_category_list' with arguments '()' and keyword arguments
    '{}' not found.

so i followed the book step by step and i cant understand for what the
url expression is looking for if i didnt set any name for the url
pattern like coltrane_category_list ??!!
the links for entries and links are working but i set the name
'coltrane_entry_archive_index' in the urlpattern for the reverse lookup.

can somebody please help me to understand the problem?!
i use django 1.1

thx

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to