{% extends 'base.html' %} {% block content %} {% if user.is_authenticated %}
You are logged in as {{ user.username }}
{% else %}
You are logged out
{% endif %} {% endblock %}