Answers for "redirect django admin"

1

permanent redirect django

from django.shortcuts import redirect

def my_view(request):
    # some code here
    return redirect('/some/url/', permanent=True)
Posted by: Guest on April-27-2021
1

django login redirect

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

Python Answers by Framework

Browse Popular Code Answers by Language