{% extends 'base.html' %} {% block title %} {% if 'update' in request.path %}{{ block.super }}| Update post{% else %}{{ block.super }}| Create New post{% endif %} {% endblock title %} {% block content %}
{% if 'update' in request.path %} Update Post {% else %} Create Post {% endif %}
{% csrf_token %} {{ form.as_p }}
{% endblock content %}