1
1
1998or22021-03-27 02:26:41
Django
1998or2, 2021-03-27 02:26:41

How to allow styles in html template in django?

Situation: there is an html template, there are static css files, as well as a django project as a whole.
But ... in the html template, styles are written in some places:

<div class="contact_text" style="color: white">
    <div class="text_form" style="margin: 15px 10px 15px 20px; text-align: center;"><h5>Форма связи</h5></div>


I don't want to bother and transfer everything to a css file. But django complains about styles in the html template. Are there any options to allow this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2021-03-27
@bacon

Make no mistake, django doesn't care about styles in the template.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question