Page not found (404)

Не найден ни один Товар, соответствующий запросу
Request Method: GET
Request URL: https://ch-shop.ru/smartfony/smartfon-realme-c31-464gb-zelenyij/
Raised by: shop.views.ProductDetailView

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

  1. __debug__/
  2. spec/
  3. smartlombard/
  4. admin/
  5. cart/
  6. orders/
  7. account/
  8. shop_api/
  9. search/ [name='search-list-view']
  10. [name='StartPageViews']
  11. category/<str:slug>/ [name='product_list_by_category']
  12. buying/ [name='buying_up']
  13. category/ [name='category_list']
  14. <slug:category_slug>/<slug:product_slug>/ [name='product_detail']

The current path, smartfony/smartfon-realme-c31-464gb-zelenyij/, 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.