|
|
@ -10,11 +10,13 @@ from django.http import (
|
|
|
|
HttpResponseNotFound,
|
|
|
|
HttpResponseNotFound,
|
|
|
|
HttpResponseServerError,
|
|
|
|
HttpResponseServerError,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
from django.views.decorators.csrf import csrf_exempt
|
|
|
|
|
|
|
|
|
|
|
|
from .inbound import receiver
|
|
|
|
from .inbound import receiver
|
|
|
|
from .signals import incoming_message
|
|
|
|
from .signals import incoming_message
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@csrf_exempt
|
|
|
|
def handle_inbound(request):
|
|
|
|
def handle_inbound(request):
|
|
|
|
if receiver.handle is None:
|
|
|
|
if receiver.handle is None:
|
|
|
|
return HttpResponseNotFound()
|
|
|
|
return HttpResponseNotFound()
|
|
|
|