basic get method in class based view django

Solutions on MaxInterview for basic get method in class based view django by the best coders in the world

showing results for - "basic get method in class based view django"
Céline
01 Jun 2020
1from django.http import HttpResponse
2from django.views import View
3
4class MyView(View):
5    def get(self, request):
6        # <view logic>
7        return HttpResponse('result')
8