Page not found (404)

Не найден ни один Категория, соответствующий запросу
Request Method: GET
Request URL: https://spi1.ru/catalog/discount-system.php
Raised by: apps.catalog.views.CategoryDetailView

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

  1. admin/
  2. robots.txt
  3. __debug__/
  4. streamfield/
  5. ckeditor/
  6. 404 [name='NFD']
  7. index.html [name='index']
  8. index.php [name='index']
  9. catalog [name='catalog']
  10. catalog / [name='catalog']
  11. catalog /set/<slug> [name='set']
  12. catalog /brands [name='brands']
  13. catalog /search [name='search']
  14. catalog /search-api [name='search_api']
  15. catalog /fast-view [name='fast_view']
  16. catalog /<slug> [name='category']

The current path, catalog/discount-system.php, 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.