Sandbox
{% if user.is_authenticated %}
Sample A
{% endif %}
{% if user.is_authenticated %}
Welcome,
{{ user.username }}
. {% if original_user %} You're logged in as
{{ user.username }}
{% endif %}
Profile
Preferences
Authentication
Django
{% if user.is_superuser %}
Login As ...
{% endif %} {% if original_user %}
Log back in as {{ original_user }}
{% endif %}
Logout
{% else %}
Guest Account
{% endif %}
{% if messages %} {% for message in messages %}
{{ message }}
{% endfor %} {% endif %} {% block container %}{% endblock container %}