Page not found (404)

Request Method: GET
Request URL: https://cityikon.com/products/2/iPhone-12-pro/
Raised by: catalog.views.ProductDetailView

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

  1. ^ ^$ [name='catalog_index']
  2. ^ ^shop/$ [name='catalog_all']
  3. ^ ^categories/(?P<slug>[\w-]+)/$ [name='catalog_category']
  4. ^ ^categories/(?P<slug>[\w-]+)/(?P<page_num>\d+)/$ [name='catalog_category']
  5. ^ ^manufacturers/(?P<slug>[\w-]+)/$ [name='catalog_manufacturer']
  6. ^ ^manufacturers/(?P<slug>[\w-]+)/(?P<page_num>\d+)/$ [name='catalog_manufacturer']
  7. ^ ^search/$ [name='catalog_search']
  8. ^ ^search/(?P<page_num>\d+)/$ [name='catalog_search']
  9. ^ ^products/(?P<product_id>\d+)/(?P<slug>[\w-]+)/$ [name='catalog_product']

The current path, products/2/iPhone-12-pro/, 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.