I hope I explain this well. I'm building a site that will have X number of categories. I don't know how many. Each category will have at least one item, but I don't know how many.
So, I need to display all categories, then each item in the category, then a detail view, without hardcoding the categories in urls.py (because more categories may be added at any time). I can get as far as: (r'^(?P<slug>[-\w]+)/$', 'django.views.generic.list_detail.object_detail', dict(category_dict, slug_field='slug', template_name="category.html")), (r'^$', 'django.views.generic.list_detail.object_list', dict(queryset=Category.objects.all(), template_object_name="category", template_name="base.html")), But for the detail view, I think I need something like /<cat_slug>/ <slug>/item Can this be done in generic views, or do I need to write a custom view? I'm sure there's some bit of documentation somewhere I'm forgetting or havent' read that makes this easy (not that a custom view for this would be hard). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---