- except Submission.DoesNotExist:
- if settings.DEBUG and key == '12345':
- submission = Submission.create(first_name = 'Debug', last_name = 'Debug', email = 'debug@debug.com', key = '12345')
- else:
- raise Http404
+ except:
+ return render(request, 'wtem/key_not_found_before.html')
+ else:
+ return render(request, 'wtem/main_before.html')
+
+def form_after(request, key):
+ return render(request, 'wtem/main_after.html')
+
+@csrf_exempt
+def form_during(request, key):