[Python] How to make a logout model that redirects the user to the homepage while keeping the...

Discussão em 'Python' iniciado por Stack, Setembro 28, 2024.

  1. Stack

    Stack Membro Participativo

    How to make a logout model that redirects the user to the homepage while keeping the language of the user

    class LogOut(Page):
    def serve(self, request):
    # Redirect to /home/fr/ not to /home/en/
    return HttpResponseRedirect('????')

    Continue reading...

Compartilhe esta Página