Hi Tom,
I have the same problem with Mixins, here is my code:
class ExampleView(ResponseMixin,View)
renderers=DEFAULT_RENDERERS
def get(self,request):
retrun (self.render(Response(200,{'msg':'called with GET'})))
def post(self,request):
retrun (self.render(Response(200,{'msg':'called with POST'})))
curl -X GET
http://django.example.com/exampleworks and returns {msg:'called with GET'}
but curl -X POST
http://django.example.com/example/or curl -X POST -H 'X-Requested-With: XMLHttpRequest'
http://django.example.com/examplefails with CSRF error.
any help is appreciated, deeply.
Cheers,
Rex