Yes, I was missing the last slash. Now I get the detail page, but now I
get the real problem I thought I had at first for this page. Because I
use the category_slug in my url for the detail page, I don't think I
can use generic view for this page?

Don't I need a "custom" view that get the 'category_slug' and
'project_slug' ?

If I try this in my views.py:

def detail_view(request, project_slug):
    queryset = Project.objects.filter(project_slug = project_slug)
    context = {'project_slug': project_slug}
    return object_detail(request, queryset, extra_context =
context)

I get:

TypeError at /portfolio/web/web_project/
detail_view() got an unexpected keyword argument 'category_slug'

Is there an easy way to just drop the 'category_slug' the detail_view,
or is it another/better way to do this?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to