Список пуст, но “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:
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.