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, }, )