from django.http.response import HttpResponse


def webhook(request):
    return HttpResponse('Webhooks not implemented yet', status=501)

from django.http.response import HttpResponse
from django.views.decorators.csrf import csrf_exempt


@csrf_exempt
def webhook(request):
    return HttpResponse('Webhooks not implemented yet', status=501)

Add csrf_exempt to webhook view
fix: Add csrf_exempt to webhook view

  from django.http.response import HttpResponse
+ from django.views.decorators.csrf import csrf_exempt
  
  
+ @csrf_exempt
  def webhook(request):
      return HttpResponse('Webhooks not implemented yet', status=501)
  
Add csrf_exempt to webhook view
## Code Before:
from django.http.response import HttpResponse


def webhook(request):
    return HttpResponse('Webhooks not implemented yet', status=501)

## Instruction:
Add csrf_exempt to webhook view
## Code After:
from django.http.response import HttpResponse
from django.views.decorators.csrf import csrf_exempt


@csrf_exempt
def webhook(request):
    return HttpResponse('Webhooks not implemented yet', status=501)
