Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

redirect in dajango

from django.shortcuts import render

def my_view(request):
    # View code here...
    return render(request, 'myapp/index.html', {
        'foo': 'bar',
    }, content_type='application/xhtml+xml')
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #redirect #dajango
ADD COMMENT
Topic
Name
3+7 =