{% extends 'base.html' %} {% block content %} {% if user.is_authenticated %} {% if user.id == post.author.id %} Delete Post

Delete Post

Delete: {{ post.title }}

{% csrf_token %}
{% endif %} {% endif %} {% endblock content %}