Page not found (404)

No Category matches the given query.
Request Method: GET
Request URL: https://www.modernrebelco.com/blog/category/bandit/
Raised by: blog.views.index_2

Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:

  1. __debug__/
  2. [name='home-index']
  3. admin/
  4. blog/category/<slug:category_slug>/ [name='blog-index-2']

The current path, blog/category/bandit/, matched the last one.

You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.