Page not found (404)

Список пуст, но “NewsByCategory.allow_empty” выставлено в значение "Ложь", что запрещает показывать пустые списки.
Request Method: GET
Request URL: https://bookread.com.ua/genre/detektiv/
Raised by: news.views.NewsByCategory

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

  1. __debug__/
  2. admin/
  3. test/
  4. robots.txt
  5. contact/ [name='contact']
  6. genres/ [name='genres']
  7. series/ [name='series']
  8. authors/ [name='authors']
  9. search/ [name='search']
  10. register/ [name='register']
  11. login/ [name='login']
  12. logout/ [name='logout']
  13. read/<int:book_id>/<int:book_page> [name='read']
  14. parse/ [name='parse']
  15. profile/ [name='profile']
  16. [name='home']
  17. genre/<str:slug>/ [name='category']

The current path, genre/detektiv/, 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.