1👍
✅
You have to pass a variable from views.py a = True
when you need to display the form, and do the if condition in template,
{% if a %}
<form action="/proyecto/" method="POST" id="myform">
................
</form>
{% endif %}
Source:stackexchange.com