Either we need to allow GET calls again or tutorial documentation needs
updated.
Documentation Code:
{{{
{% if user.is_authenticated %}
Hi {{ user.username }}!
<p><a href="{% url 'logout' %}" >Log Out</a></p>
{% else %}
<p>You are not logged in</p>
<a href="{% url 'login' %}">Log In</a>
{% endif %}
}}}
Code in question:
https://github.com/django/django/blob/2005530920e7c290bb1cf7d9ada155250faa81ad/django/contrib/auth/views.py#L129
--
Ticket URL: <https://code.djangoproject.com/ticket/35150>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Unsure which documentation code tutorial you are referring to
[https://docs.djangoproject.com/en/5.0/releases/4.1/#log-out-via-get but
the docs clearly mention how to upgrade].
What documentation are you referring to?
--
Ticket URL: <https://code.djangoproject.com/ticket/35150#comment:1>
Disregard. I was using outdated documentation.
--
Ticket URL: <https://code.djangoproject.com/ticket/35150#comment:2>
* status: new => closed
* resolution: => invalid
--
Ticket URL: <https://code.djangoproject.com/ticket/35150#comment:3>