There is a form. How to transfer it to url is understandable. How to transfer it to template tags?
After all, the form needs a URL, where to send information POST.
Need for feedback form
There is a form. How to transfer it to url is understandable. How to transfer it to template tags?
After all, the form needs a URL, where to send information POST.
Need for feedback form
The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .
Without submission, you will not process the form. Make a separate submission for the form and send it by AJAX or redirect after processing where necessary.
A form can be added to the base template through its tag:
@register.assigment_tag() def get_form(): return FormFoo() HTML
{% get_form as form %} <form action={% url 'form_view' %}> {{ form }} <input type="submit"> </form> Source: https://ru.stackoverflow.com/questions/586741/
All Articles