F
F
fl0pp52021-02-03 21:07:42
Django
fl0pp5, 2021-02-03 21:07:42

Is this use of a CSRF token correct?

Would it be correct to use in the base template? Does it break any rules? {% csrf_token %}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dr. Bacon, 2021-02-03
@fl0pp5

This is just the output of the input tag with the value of the token.

V
Vitaly, 2021-02-05
@MrCute

This tag is used in the html form when submitting the form using the post method

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question