Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

permanent redirect django

from django.shortcuts import redirect

def my_view(request):
    # some code here
    return redirect('/some/url/', permanent=True)
 
PREVIOUS NEXT
Tagged: #permanent #redirect #django
ADD COMMENT
Topic
Name
4+3 =