{% extends "base.html" %} {% block title %}Registration form {% endblock %} {% block pagetitle %}Online Test {% endblock %} {% block formtitle %}Please fill in the following details {% endblock %} {% block content %} <form action="" method="post"> {% csrf_token %} <center><table class=span1> {{ form.as_table }} </table></center> <center><button class="btn" type="submit">Register</button> <button class="btn" type="reset">Cancel</button></center> </form> {% endblock content %}