@method_decorator(csrf_exempt, name='dispatch')
class Example(TemplateView):
template_name = 'example.html'
def post(self, request, *args, **kwargs):
context = self.get_context_data()
print(request.POST)
return super(TemplateView, self).render_to_response(context)