Page not found (404)

Не найден ни один year, соответствующий запросу
Request Method: GET
Request URL: https://kelebooks.com/year/29/
Raised by: books.views.<class 'books.views.YearView'>

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

  1. [name='index']
  2. page/1/ [name='home_redirect']
  3. page/<int:page>/ [name='index']
  4. book/<slug:slug>/ [name='book']
  5. book/<slug:slug>/page/<int:page>/ [name='book_page']
  6. category/<slug:slug>/ [name='category']
  7. keyword/<slug:slug>/ [name='keyword']
  8. author/<slug:slug>/ [name='author']
  9. year/<slug:slug>/ [name='year']

The current path, year/29/, 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.