Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django class based views

from django.http import HttpResponse
from django.views import View

class MyView(View):
    def get(self, request):
        # <view logic>
        return HttpResponse('result')
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #django #class #based #views
ADD COMMENT
Topic
Name
3+2 =