Page not found (404)

No Post matches the given query.
Request Method: GET
Request URL: https://krasnoarsk.ru/detail/1511/
Raised by: article.views.post_detail

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

  1. admin/
  2. [name='post_list']
  3. detail/<int:pk>/ [name='post_detail']

The current path, detail/1511/, 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.