Page not found (404)

Не найден ни один Пост/статья, соответствующий запросу
Request Method: GET
Request URL: http://127.0.0.1:8000/p/8
Raised by: vorkuta_tv.general.views.PostView

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

  1. blog
  2. p/(?P<pk>[0-9]+) [name='post']
  3. p/<slug> [name='post']

The current path, p/8, 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.