Browse Source

Zmena nazvu views v urlconf

remotes/origin/feincms
Tomas Gavenciak 10 years ago
parent
commit
40f43f5208
  1. 0
      seminar/templates/seminar/AktualniZadani.html
  2. 2
      seminar/urls.py
  3. 4
      seminar/views.py

0
seminar/templates/seminar/AktualZadani.html → seminar/templates/seminar/AktualniZadani.html

2
seminar/urls.py

@ -5,5 +5,5 @@ urlpatterns = patterns('',
url(r'^rocnik/(?P<pk>\d+)/$', views.RocnikView.as_view(), name='seminar.rocnik'),
url(r'^cislo/(?P<pk>\d+)/$', views.CisloView.as_view(), name='seminar.cislo'),
url(r'^problem/(?P<pk>\d+)/$', views.ProblemView.as_view(), name='seminar.problem'),
url(r'^zadani/$', 'seminar.views.AktualZadaniView'),
url(r'^zadani/$', views.AktualniZadaniView, name='seminar.aktualni_zadani'),
)

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

Loading…
Cancel
Save