Django 1.7, Python 3.4
[turniej.git] / apps / edition1 / urls.py
index 15f729f..285808f 100755 (executable)
@@ -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'),
 
 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'),
         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'),
         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'),
 )
         name='e1_technical_page'),
 )