N
N
nikmaildjango2018-04-03 18:37:04
Django
nikmaildjango, 2018-04-03 18:37:04

How to output Django data?

I use Ckeditor, when displaying on the site I use {{ articles.text|safe }}, but since the one who creates the post can insert a large image, it does not fit in the block and goes outside the site. How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-04-03
@nikmaildjango

Define a style that sets the max-width and max-height for images within this block.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question