Page not found (404)

Request Method: GET
Request URL: https://untill.jp/item_detail/40/
Raised by: shop.views.ItemDetailView

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

  1. admin/
  2. [name='index']
  3. item_result [name='result']
  4. item_detail/<int:pk>/ [name='item_detail']

The current path, item_detail/40/, 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.