Page not found (404)

No pic found matching the query
Request Method: GET
Request URL: https://samples.dj4e.com/pics/pic/44
Raised by: pics.views.PicDetailView

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/
  19. pics/ [name='all']
  20. pics/ pic/<int:pk> [name='pic_detail']

The current path, pics/pic/44, 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.