Django error question!

Asked 2 years ago, Updated 2 years ago, 49 views

In the process of entering the detail_view, the product and description are intended, but only the date comes out. Please help, masters ㅠ<

{% extends 'mysite/base.html' %}

{% {% block content %}
<div class="post">

<div class="date">
{{ {{ post.pub_date }}
</div>

<h1>{{ post.product }}</h1>
<p>{{ post.description|linebreaksbr }}</p>

</div>
{% {% endblock %}

django

2022-09-22 21:12

1 Answers

Try watching the source in html

Where Product and Description Should Be

<h1></h1>
<p></p>

If it comes out like this, the value of the product and description of the post object is not included.


2022-09-22 21:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.