Answers for "django redirect user to where they logged out"

1

django login redirect

LOGIN_REDIRECT_URL = 'home'
Posted by: Guest on September-16-2020
0

redirect if not logged in django

from django.contrib.auth.decorators import login_required

@login_required(login_url='/accounts/login/')
def my_view(request):
    ...
Posted by: Guest on July-12-2021

Code answers related to "django redirect user to where they logged out"

Python Answers by Framework

Browse Popular Code Answers by Language