{% csrf_token %} {% if username %} 您好,{{ username }}! 退出 {% else %} {% endif %}