Answer the question
In order to leave comments, you need to log in
How to add dynamic content when rendering a page?
Good afternoon
There is django 2.2
There is a page template page.html
The task is to display dynamic content on the page from the TextField model.
template:
<div>
{{ content|safe }}
</div>
...
content = models.TextField()
...
<p>Текст текст текст Текст текст текст Текст текст текст {{ geo.adress }} Текст текст текст Текст текст текст Текст текст текст</p>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question