From: Aleksander Ɓukasz Date: Fri, 8 Nov 2013 11:47:11 +0000 (+0100) Subject: Removed unsed root "/wtem/" url X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/a638f0a8038186e7a07096702e53c8efbee83092?ds=sidebyside Removed unsed root "/wtem/" url --- 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)