add commented out test endpoint for fail handler
This commit is contained in:
@ -4,4 +4,5 @@ from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('submit', views.submit, name='markup_submit'),
|
||||
#path('fail', views.fail, name='markup_fail'),
|
||||
]
|
||||
|
||||
@ -12,10 +12,18 @@ from django.views.decorators.http import require_http_methods
|
||||
from django.core.files.uploadhandler import TemporaryFileUploadHandler
|
||||
|
||||
from .tasks import process_message
|
||||
#from .tasks import test_fail
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
||||
# @csrf_exempt
|
||||
# def fail(request):
|
||||
# test_fail.delay(1, 2)
|
||||
# return JsonResponse({'success': True}, safe=False)
|
||||
|
||||
|
||||
@csrf_exempt
|
||||
@require_http_methods(["POST"])
|
||||
def submit(request):
|
||||
|
||||
Reference in New Issue
Block a user