from django.conf import settings
from django.http import Http404, HttpResponseForbidden
from django.conf import settings
from django.http import Http404, HttpResponseForbidden
from .forms import WTEMForm
WTEM_CONTEST_STAGE = getattr(settings, 'WTEM_CONTEST_STAGE', 'before')
from .forms import WTEMForm
WTEM_CONTEST_STAGE = getattr(settings, 'WTEM_CONTEST_STAGE', 'before')
submission = Submission.create(first_name = 'Debug', last_name = 'Debug', email = 'debug@debug.com', key = DEBUG_KEY)
else:
raise Http404
submission = Submission.create(first_name = 'Debug', last_name = 'Debug', email = 'debug@debug.com', key = DEBUG_KEY)
else:
raise Http404
if request.method == 'GET':
return render(request, 'wtem/main.html', dict(exercises = exercises))
elif request.method == 'POST':
if request.method == 'GET':
return render(request, 'wtem/main.html', dict(exercises = exercises))
elif request.method == 'POST':