#36699: Clarify behavior and documentation for login (404) and logout (405)
routes
-------------------------------------+-------------------------------------
Reporter: yydsjkl | Owner: (none)
Type: Bug | Status: closed
Component: contrib.auth | Version: 5.2
Severity: Normal | Resolution: duplicate
Keywords: login, logout, | Triage Stage:
authentication, confusion | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):
* component: Uncategorized => contrib.auth
* resolution: => duplicate
* status: new => closed
Comment:
Hello yydsjkl, thank you for your interest in making Django better. This
topic has been discussed in the forum, currently with pending community
agreement: you can read more and participate in
https://forum.djangoproject.com/t/update-startproject-with-default-login-
signup-logout-options/35175. There is also this somewhat relevant DEP
proposal: https://github.com/django/deps/pull/98.
It's also important to note that some of the bits that you propose are
already available in the docs, like describing how to define a login view.
The following is shown in the docs you linked:
{{{#!python
from django.contrib.auth import views as auth_views
path("accounts/login/", auth_views.LoginView.as_view()),
}}}
And also:
> It's your responsibility to provide the html for the login template ,
called registration/login.html by default.
This ticket could also be considered a duplicate of #13061. I'll be
closing this ticket as `duplicate` but please continue the conversation in
the forum if you are interested in this subject.
--
Ticket URL: <https://code.djangoproject.com/ticket/36699#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019a3a6a453b-cebd5edb-d0a4-42a7-be75-f72404ecd3a7-000000%40eu-central-1.amazonses.com.