{% if msg %}
    {{ msg }}
{% else %}
    {% if current_user %}
        You are viewing: <br />
        {{ current_user.username }} {{ current_user.get_profile.all_mails }}<br />
        You are:<br />
        {{ user.username }} {{ user.get_profile.all_mails }}
    {% endif %}
{% endif %}
{% if msg %}
    {{ msg }}
{% else %}
    {% if current_user %}
        You are viewing: <br />
        {% for attribute, value in current_user.items %}
            {{ attribute }}: {{ value }} <br />
        {% endfor %}
        You are:<br />
        {{ user.username }} {{ user.get_profile.all_mails }}
    {% endif %}
{% endif %}
Improve print of user data in template
Improve print of user data in template
