{% if not facebook.is_authenticated and not request.GET.code %} {{ auth_url }} {% endif %} {% block content %} {% endblock %}