[Python] Does Django automatically recognize registration/login.html as the login template?

Discussão em 'Python' iniciado por Stack, Fevereiro 20, 2025.

  1. Stack

    Stack Membro Participativo

    Does Django automatically recognize templates/registration/login.html as the login page? I'm working on a Django project and want to use Django's built-in authentication system for user login. I didn't set path to /login in urls.py but it's working on url/accounts/login/?next=/.

    My question is:

    1. Does Django automatically recognize registration/login.html as the default login template?
    2. If so, how does Django determine this file's location?
    3. Do I need to set anything in settings.py to make this work?
    4. Where is written the logic for this built in login

    Continue reading...

Compartilhe esta Página