Answer the question
In order to leave comments, you need to log in
ckeditor django display?
Why do I see the html code in the template after getting the text formatted in ckeditor from the database?
<div class="page-header">
<h3> Тактико технічні характеристики</h3>
</div> {{ details.tth }}
<div class="page-header">
<h3> Технічне обслуговування</h3>
</div> {{ details.teh_obslug }}
def detali(request,id_ekz):
details = Stats.objects.get(pk=id_ekz)
rozdil = Rozdil.objects.all()
context = {'details':details,'rozdil': rozdil}
return render(request,'details.html',context)
url(r'^detali/(?P<id_ekz>\d+)', 'wiki.views.detali'),
Answer the question
In order to leave comments, you need to log in
In the display, add | safe and everything will be ok. Thank you all, let's go.
Zagalna Budova
{{ details.zag_bund | safe))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question