Page not found (404)

No Forum matches the given query.
Request Method: GET
Request URL: https://samples.dj4e.com/forums/forum/4
Raised by: forums.views.ForumDetailView

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

  1. admin/
  2. accounts/
  3. ^oauth/
  4. hello/
  5. users/
  6. tracks/
  7. views/
  8. route/
  9. tmpl/
  10. gview/
  11. session/
  12. authz/
  13. getpost/
  14. form/
  15. crispy/
  16. myarts/
  17. menu/
  18. forums/ [name='all']
  19. forums/ forum/<int:pk> [name='forum_detail']

The current path, forums/forum/4, 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.