1👍
✅
I suspect that you forgot to include the urls.py
from your app into the project’s urls.py
.
UPDATE: if you used the namespace
parameter of the include then you have to specify this namespace in the reverse()
call:
def get_absolute_url(self):
return reverse('blog:category_view', kwargs={'pk': self.slug})
Source:stackexchange.com