{% extends 'base.html' %} {% block content %} {% if user.is_authenticated %} Title {% if user.id == profile.user.id %}

Update Profile Page

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