-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'),
- url(r'^wiecej/$', direct_to_template, {'template': 'edition1/more.html'},
+ url(r'^wiecej/$', TemplateView.as_view(template_name='edition1/more.html'),
- url(r'^technikalia/$', direct_to_template, {'template': 'edition1/technical.html'},
+ url(r'^technikalia/$', TemplateView.as_view(template_name='edition1/technical.html'),