Page not found (404)

No GalleryIndex matches the given query.
Request Method: GET
Request URL: https://images.ash.bzh/en/gallery/archives/2005/
Raised by: gallery.views.year_view

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

  1. favicon.ico
  2. admin/
  3. cms/
  4. documents/
  5. comments/
  6. footnotes/
  7. robots.txt
  8. sitemap.xml
  9. ^static/(?P<path>.*)$
  10. ^media/(?P<path>.*)$
  11. 400/
  12. 403/
  13. 404/
  14. 500/
  15. pf403/
  16. pf404/
  17. 50x/
  18. en/ 400/
  19. en/ 403/
  20. en/ 404/
  21. en/ 500/
  22. en/ pf403/
  23. en/ pf404/
  24. en/ 50x/
  25. en/ comments/
  26. en/ blog/
  27. en/ gallery/ ^albums/(?P<album>[-\w]+)/feed/$ [name='album_feed']
  28. en/ gallery/ albums/ [name='albums_list']
  29. en/ gallery/ albums/<str:album>/ [name='album']
  30. en/ gallery/ album/<str:album>/ [name='album_singular']
  31. en/ gallery/ authors/<str:author>/ [name='author']
  32. en/ gallery/ author/<str:author>/ [name='author_singular']
  33. en/ gallery/ archives/<int:year>/ [name='archive_year']

The current path, en/gallery/archives/2005/, 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.