Skip to content
Advertisement

Django 1.6 No Category matches the given query

I am newbie in django .. and i dont understand what is reason this 404 error

I have Page not found (404) when i try go to link No Category matches the given query.

code:

models.py:

JavaScript

views.py:

JavaScript

urls.py

JavaScript

Advertisement

Answer

Most likely, you don’t have category object with slug that you are specifying in the url. Due to this, the line

JavaScript

in your category_view() gives you 404 page.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement