Я новичок в Django и пытаюсь создать проект блога, и я создал обратный URL-адрес, но когда я нажимаю на заголовок сообщения, я получаю, что сообщение не соответствует данному запросу
Однако URL-адрес создается, например, для http://127.0.0.1: 8000/2020/07/31 / case-against-full-disk-encryption /
1.urls.py <!DOCTYPE html> {%load static%} <html lang="en" dir="ltr"> <head> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script> <meta charset="UTF-8"> <link rel="stylesheet" href="{% static "css/blog7.css"%}"> <title>{%block title_block %}{%endblock%}</title> </head> <body> <div class="content"> {%block content%}{%endblock%} </div> <div class="sidebar"> <h2>SHAILESH'S YADAV BLOG</h2> <p>Here You can see latest Post Information!...</p> </div> </body> </html> post_list.html: here i am calling {{post.get_absolute_url}} from modeles.py
<!DOCTYPE html> {%load static%} <html lang="en" dir="ltr"> <head> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script> <meta charset="UTF-8"> <link rel="stylesheet" href="{% static "css/blog7.css"%}"> <title>{%block title_block %}{%endblock%}</title> </head> <body> <div class="content"> {%block content%}{%endblock%} </div> <div class="sidebar"> <h2>SHAILESH'S YADAV BLOG</h2> <p>Here You can see latest Post Information!...</p> </div> </body> </html> post_list.html: here i am calling {{post.get_absolute_url}} from modeles.py
<!DOCTYPE html> {% extends 'blog/base.html' %} {% block title_block %} SHAILESH'S BLOG HOMEPAGE {%endblock%} {%block content%} <div align="center" class="container"> <div class="jumbotron"> <h1>SHAILESH's Latest Blog</h1>     </div> </div> {% for post in post_list %} <a href="{{post.get_absolute_url}}"><h2>{{post.title}}</h2></a> <p id='date'>Published on {{post.publish}} by {{post.author|title}}</p><!--#Filter title--> {{post.body|truncatewords:30|linebreaks}} {%endfor%} {%endblock%}