display login status Section 11, Lecture 50
ログイン状態か表示する方法
app/catalog/templates/layout.htmlに以下を追記する。
<a href=""> {% if current_user.is_authenticated %} Logged-In as <b style="color: deeppink"> {{ current_user.user_name.title() }} </b> {% else %} Not Logged-In {% endif %} </a>
実際にやってみる ログイン状態の場合