File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
import django
2
- from django .conf .urls import patterns , include , url
2
+ from django .conf .urls import include , url
3
3
from django .contrib import admin
4
4
5
5
if django .VERSION < (1 ,7 ):
6
6
admin .autodiscover ()
7
7
8
- urlpatterns = patterns ( '' ,
8
+ urlpatterns = [
9
9
# Examples:
10
10
# url(r'^$', 'example.views.home', name='home'),
11
11
# url(r'^blog/', include('blog.urls')),
12
12
13
13
url (r'^admin/' , include (admin .site .urls )),
14
- )
14
+ ]
Original file line number Diff line number Diff line change 24
24
'BACKEND' : 'django.template.backends.django.DjangoTemplates' ,
25
25
'DIRS' : (),
26
26
'OPTIONS' : {
27
+ 'debug' : True ,
27
28
'loaders' : (
28
29
'django.template.loaders.filesystem.Loader' ,
29
30
'django.template.loaders.app_directories.Loader' ,
42
43
)
43
44
else :
44
45
template_settings = dict (
46
+ TEMPLATE_DEBUG = True ,
45
47
TEMPLATE_LOADERS = (
46
48
'django.template.loaders.app_directories.Loader' ,
47
49
'django.template.loaders.filesystem.Loader' ,
53
55
54
56
settings .configure (
55
57
DEBUG = False , # will be False anyway by DjangoTestRunner.
56
- TEMPLATE_DEBUG = True ,
57
58
DATABASES = {
58
59
'default' : {
59
60
'ENGINE' : 'django.db.backends.sqlite3' ,
You can’t perform that action at this time.
0 commit comments