Page not found (404)

No article found matching the query
Request Method: GET
Request URL: https://samples.dj4e.com/myarts/article/10
Raised by: myarts.views.ArticleDetailView

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/ [name='all']
  17. myarts/ article/<int:pk> [name='article_detail']

The current path, myarts/article/10, 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.