0

using djangoenter image description here

I want to create an if else block and make this data in mysql so that if it is empty, the button will not appear, but if it is not empty button will appear, I tried this, but it counts as full.

  • Does this answer your question? ['if' statement in jinja2 template](https://stackoverflow.com/questions/40620823/if-statement-in-jinja2-template) – sahasrara62 Dec 14 '22 at 11:50
  • 1
    You can post your view, html file, So others can help you – Jisson Dec 14 '22 at 12:13
  • you can have do a check in your Django template. {% if the_variable_sending_from_view %} //show button {% endif %} – Jisson Dec 14 '22 at 12:17

0 Answers0