Hi, >[...]#Views > def category_view(request, cat_slug): > [...] > (r'^portfolio/(?P<category_slug>[-\w]+)/$', > 'myproject.portfolio.views.category_view'), > > When I try "mydomain.com/portfolio/category_slug" (My category_slug is > "3d") I get the error: > > TypeError at /portfolio/3d/ > category_view() got an unexpected keyword argument 'category_slug' >
You have named the group inside your regular expression "category_slug" therefore djangp passes a parameter with this name to the view. But in your view this parameter is named "cat_slug". So, If you either change the name of your group in the reg-ex or change the name of the parameter in the view so that they match each other, is problem should be gone. Martin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---