{% if not su_state %}

Error: the su_state context processor was not found. Is "django_switchuser.context_processors.su_state" in your list of TEMPLATE_CONTEXT_PROCESSORS?

{% else %} {% if su_state.is_active %}

Currently logged in as: {{ current_user.username }} ({{ current_user.get_full_name }})

{% endif %}
{% csrf_token %}
{% include "su/logout_form.html" %} {% endif %}