From a638f0a8038186e7a07096702e53c8efbee83092 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Fri, 8 Nov 2013 12:47:11 +0100 Subject: [PATCH] Removed unsed root "/wtem/" url --- wtem/urls.py | 3 +-- wtem/views.py | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/wtem/urls.py b/wtem/urls.py index c78e8bd..7de39ed 100644 --- a/wtem/urls.py +++ b/wtem/urls.py @@ -1,9 +1,8 @@ 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.*)/$', form_during), url(r'^(?P.*)/$', form, name = 'wtem_form') ) diff --git a/wtem/views.py b/wtem/views.py index bfce3c9..896746a 100644 --- a/wtem/views.py +++ b/wtem/views.py @@ -11,9 +11,6 @@ from .forms import WTEMForm 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) -- 2.20.1