{% extends 'base.html' %} {% block content %} {% if user.is_authenticated %} Add Post

Add Post

{% csrf_token %} {{ form.media }} {{ form.as_p }}
{% endif %} {% endblock content %}