Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

return render django

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: #return #render #django
ADD COMMENT
Topic
Name
1+8 =