# django built in logout doesn't work

**URL:** <https://forum.djangoproject.com/t/django-built-in-logout-doesnt-work/28229>\
**Category:** Mystery Errors\
**Created:** [February 19, 2024, 3:52pm UTC](https://forum.djangoproject.com/t/django-built-in-logout-doesnt-work/28229 "2024-02-19T15:52:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aboubakar](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/aboubakar/32/19299_2.png) [@Aboubakar](https://forum.djangoproject.com/u/Aboubakar)\
**Post date:** [February 19, 2024, 3:52pm UTC](https://forum.djangoproject.com/t/django-built-in-logout-doesnt-work/28229/1 "2024-02-19T15:52:19Z")

</div>

i’m following this tutorial [django tutorial](https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Authentication) and the built in logout does’nt work it return : Method Not Allowed (GET): /accounts/logout/

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [February 19, 2024, 4:00pm UTC](https://forum.djangoproject.com/t/django-built-in-logout-doesnt-work/28229/2 "2024-02-19T16:00:50Z")

</div>

Correct, for all the reasons identified at [Deprecation of GET method for LogoutView](https://forum.djangoproject.com/t/deprecation-of-get-method-for-logoutview/25533)

That tutorial should be updated.

Also see [Django 4.1 release notes | Django documentation | Django](https://docs.djangoproject.com/en/5.0/releases/4.1/#features-deprecated-in-4-1)
