#from django.shortcuts import render # Create your views here. from django.http import HttpRequest, HttpResponse, JsonResponse from django.views import View class ArticeView(View): def get(self, request): return JsonResponse({'mothod': 'get'}) def post(self, request): return JsonResponse({'mothod': 'post'})