Update startproject with default login/signup/logout options

  1. I think docs would be the first step here. Doc changes can also be back ported (and improve the experience for everybody). This already has an accepted ticket: #21292 (A how-to or tutorial document for using authentication views and forms is needed) – Django

  2. The next step is having a login experience available out of the box, to be used as a starting point for Django users. This requires a ticket. This is how I would expect this to progress:

    • A login template is created at django/contrib/auth/templates/registration/login.html. This can use/replace the existing example: Using the Django authentication system | Django documentation | Django
    • As LOGIN_REDIRECT_URL = "/accounts/profile/" by default, a very very basic profile view is created with a template which says “Hello, {{ user }}” and has the logout button

I don’t believe this ticket was created? Please correct me if I’m wrong and link it to the thread.


Signup is the most contentious. Most users will create a superuser almost immediately via the management command in order to use the admin. This means they can still benefit from the login/logout batteries. I think we need more discussion before we accept the ticket on this

1 Like