add commented out test endpoint for fail handler

This commit is contained in:
2019-10-31 11:57:23 -07:00
parent 53e57abaec
commit 75b7cdc31a
2 changed files with 9 additions and 0 deletions

View File

@ -4,4 +4,5 @@ from . import views
urlpatterns = [
path('submit', views.submit, name='markup_submit'),
#path('fail', views.fail, name='markup_fail'),
]

View File

@ -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):