from django.conf.urls import patterns, url
from django.conf import settings
-from .views import main, form, form_during
+from .views import form, form_during
urlpatterns = patterns('',
- url(r'^$', main, name = 'wtem_main'),
url(r'^_test/(?P<key>.*)/$', form_during),
url(r'^(?P<key>.*)/$', form, name = 'wtem_form')
)
WTEM_CONTEST_STAGE = getattr(settings, 'WTEM_CONTEST_STAGE', 'before')
-def main(request):
- pass
-
def form(request, key):
return globals()['form_' + WTEM_CONTEST_STAGE](request, key)