{% if user.is_authenticated %} {% if form %} {% load crispy_forms_tags %} {% crispy form %} {% endif %} {% endif %}