{% extends "templates/base.html" %} {% block content %} <form action="/comment/edit/{{ comment.id }}" method="post"> {% csrf_token %} {{ form.as_p }} <input type="submit" name="edit" value="Edit" /><input type="submit" name="cancel" value="Cancel" /> </form> {% endblock %}