{%block body%} <h2>{% if creating %}Add{% else %}Edit{% endif %} Problem</h2> <form action="" method="post" enctype="multipart/form-data"> <table> {{ form.as_table }} </table> <input type="submit" value="Save" /> </form> <hr /> {%endblock%}