def post(self, request, *args, **kwargs): content = request.POST.get('content') if content: response = md2html(content) else: response = b"" return HttpResponse(response)