File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
from django .conf import settings
2
2
from django .conf .urls .defaults import *
3
3
from django .contrib import admin
4
- from django .views .generic . simple import direct_to_template
4
+ from django .views .generic import TemplateView
5
5
6
6
admin .autodiscover ()
7
7
8
8
urlpatterns = patterns ('' ,
9
- (r'^$' , direct_to_template , { 'template' : ' index.html'} ),
10
- (r'^jquery/index/$' , direct_to_template , { 'template' : ' jquery/index.html'} ),
11
- (r'^mootools/index/$' , direct_to_template , { 'template' : ' mootools/index.html'} ),
12
- (r'^prototype/index/$' , direct_to_template , { 'template' : ' prototype/index.html'} ),
9
+ (r'^$' , TemplateView . as_view ( template_name = ' index.html') ),
10
+ (r'^jquery/index/$' , TemplateView . as_view ( template_name = ' jquery/index.html') ),
11
+ (r'^mootools/index/$' , TemplateView . as_view ( template_name = ' mootools/index.html') ),
12
+ (r'^prototype/index/$' , TemplateView . as_view ( template_name = ' prototype/index.html') ),
13
13
(r'^admin/' , include (admin .site .urls )),
14
14
)
15
15
You can’t perform that action at this time.
0 commit comments