Hi I am new to html design and learning... I am rendering some content from a django service onto a html template i am not able to set the page in such a way the if a condition is satisfied it goes the top of the html page and if the condition is not satisfied it goes to the bottom of the page like
{% for t in list %}
{% if not t.appendix %}
<div id="content">
Content
</div>
{% else %}
<div id="appendix">
appendix
</div>
{% endif %}
{% endfor %}
And the HTML page should be like
Content 1
Content 2
Content 1
Content 2
Appendix 1
Appendix 1
Appendix 1
Appendix 1
Now i get like
Appendix 1
Content 1
Appendix 2
Content 2