From 928886eb4ec2ccafc9f84fa13a0bb9e293f6e8a5 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 3 Sep 2022 00:38:44 -0400 Subject: [PATCH] Use POST for logout, as GET is deprecated as of Django 4.1 --- templates/base.dj.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/base.dj.html b/templates/base.dj.html index 88c6776..5657bdf 100644 --- a/templates/base.dj.html +++ b/templates/base.dj.html @@ -34,7 +34,10 @@ href="{% block admin_link %}{% url 'admin:index' %}{% endblock %}">Admin {% endif %} {% if user.is_authenticated %} - Logout: {{ user }} +
+ {% csrf_token %} + +
{% else %} Login