python - How to implement AJAX communication protocol in Django the OOP way: class-based "view" without the actual view, only JsonResponses -
i have worked little both class-based , function-based views in django. have url (let's /backend) mapped function. it's meant accessed post ajax requests (i have corresponding checks in function). function analyzes incoming data , returns other data in form of json document. however, function not comfortable , rather have class that. i'm new django, there "standard" ways of implementing template-less view that's meant return json based on input json?
Comments
Post a Comment