X-Git-Url: https://git.mdrn.pl/turniej.git/blobdiff_plain/6796e667eb109e38e35420da5bfa44bfffd06241..32597f46cd79051f9cf213aa53d4996dd3093b8a:/apps/edition1/urls.py?ds=sidebyside diff --git a/apps/edition1/urls.py b/apps/edition1/urls.py index 15f729f..285808f 100755 --- a/apps/edition1/urls.py +++ b/apps/edition1/urls.py @@ -1,12 +1,12 @@ -from django.conf.urls.defaults import patterns, include, url -from django.views.generic.simple import direct_to_template +from django.conf.urls import patterns, url +from django.views.generic import TemplateView urlpatterns = patterns('', url(r'^$', 'edition1.views.home', name='e1_main_page'), - url(r'^regulamin/$', direct_to_template, {'template': 'edition1/rules.html'}, + url(r'^regulamin/$', TemplateView.as_view(template_name='edition1/rules.html'), name='e1_rules_page'), - url(r'^wiecej/$', direct_to_template, {'template': 'edition1/more.html'}, + url(r'^wiecej/$', TemplateView.as_view(template_name='edition1/more.html'), name='e1_more_page'), - url(r'^technikalia/$', direct_to_template, {'template': 'edition1/technical.html'}, + url(r'^technikalia/$', TemplateView.as_view(template_name='edition1/technical.html'), name='e1_technical_page'), )