--
Ticket URL: <https://code.djangoproject.com/ticket/35043>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => duplicate
Comment:
Duplicate of #35013.
Please don't open duplicates and check
[https://docs.djangoproject.com/en/stable/releases/4.1/#log-out-via-get
release notes].
--
Ticket URL: <https://code.djangoproject.com/ticket/35043#comment:1>
Comment (by otonoton):
I don't consider it a duplicate because URL path entries do not specify a
request method. Please don't just immediately close my ticket without at
least attempting to communicate with me first.
--
Ticket URL: <https://code.djangoproject.com/ticket/35043#comment:2>
Comment (by Mariusz Felisiak):
> Please don't just immediately close my ticket without at least
attempting to communicate with me first.
Then provide any details and follow our
[https://docs.djangoproject.com/en/dev/internals/contributing/bugs-and-
features/#reporting-bugs bug reporting guidelines]. I don't think you've
explained the issue in enough detail to confirm a bug in Django.
> I don't consider it a duplicate because URL path entries do not specify
a request method.
What do you mean? How could we understand what you're trying to report?
The ticket description shows that it's a duplicate. `LogoutView`
implements `post()` and release notes describe precisely that you should
use `POST` requests.
--
Ticket URL: <https://code.djangoproject.com/ticket/35043#comment:3>
Comment (by otonoton):
How am I supposed to use LogoutView in urls.py now? i.e. without any other
explicit view or template being defined (just like how it used to work)
--
Ticket URL: <https://code.djangoproject.com/ticket/35043#comment:4>
Comment (by Tim Graham):
If you would like to continue supporting logout via GET, you could copy
`LogoutView` from Django 4.2 and use that in your project.
--
Ticket URL: <https://code.djangoproject.com/ticket/35043#comment:5>