From 40f43f5208024027388ba82e18fb6c078eebe934 Mon Sep 17 00:00:00 2001 From: Tomas Gavenciak Date: Wed, 1 Apr 2015 14:05:04 +0200 Subject: [PATCH] Zmena nazvu views v urlconf --- .../seminar/{AktualZadani.html => AktualniZadani.html} | 0 seminar/urls.py | 2 +- seminar/views.py | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename seminar/templates/seminar/{AktualZadani.html => AktualniZadani.html} (100%) diff --git a/seminar/templates/seminar/AktualZadani.html b/seminar/templates/seminar/AktualniZadani.html similarity index 100% rename from seminar/templates/seminar/AktualZadani.html rename to seminar/templates/seminar/AktualniZadani.html diff --git a/seminar/urls.py b/seminar/urls.py index 08884bb7..62d4bfe9 100644 --- a/seminar/urls.py +++ b/seminar/urls.py @@ -5,5 +5,5 @@ urlpatterns = patterns('', url(r'^rocnik/(?P\d+)/$', views.RocnikView.as_view(), name='seminar.rocnik'), url(r'^cislo/(?P\d+)/$', views.CisloView.as_view(), name='seminar.cislo'), url(r'^problem/(?P\d+)/$', views.ProblemView.as_view(), name='seminar.problem'), - url(r'^zadani/$', 'seminar.views.AktualZadaniView'), + url(r'^zadani/$', views.AktualniZadaniView, name='seminar.aktualni_zadani'), ) diff --git a/seminar/views.py b/seminar/views.py index 0f582e59..dd68d8c4 100644 --- a/seminar/views.py +++ b/seminar/views.py @@ -5,9 +5,9 @@ from django.views import generic from .models import Problem, Cislo, Reseni, VysledkyKCislu, Nastaveni, Rocnik -def AktualZadaniView(request): +def AktualniZadaniView(request): nastaveni = get_object_or_404(Nastaveni) - return render(request, 'seminar/AktualZadani.html', + return render(request, 'seminar/AktualniZadani.html', {'nastaveni' : nastaveni, }, )