rant_category() got an unexpected keyword argument 'slug'

Vicente G. Reyes - Mar 4 '23 - - Dev Community

Running into an rant_category() got an unexpected keyword argument 'slug' on my django project. Basically, I just need to get the slug of the #category in my app to show it in the url.

Here's my code:

views.py

class RantListView(ListView)
    model = Rant
    context_object_name = "rants"
    template_name = "rants/rant_list.html"


class
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player