Commit ad8a14c3 authored by okhin's avatar okhin

Updating the syntax for the DEBUG in templates

parent 3ce175c2
......@@ -37,7 +37,6 @@ class ImporterTest(TestCase):
name='test importer',
category='repr',
campaign=self.campaign,
organization=self.organization
)
self.assertEqual(str(importer), u'%(name)s: %(format)s %(type)s importer' % {'format': importer.category,
'type': importer.kind(),
......@@ -48,7 +47,6 @@ class ImporterTest(TestCase):
name='test importer',
category='repr',
campaign = self.campaign,
organization = self.organization,
)
self.assertEqual(importer.kind(), None)
importer.file = 'a'
......@@ -65,7 +63,6 @@ class ImporterTest(TestCase):
name='test importer',
category='repr',
campaign = self.campaign,
organization = self.organization,
file=json_file
)
self.assertEqual(importer.kind(), 'file')
......
......@@ -104,10 +104,14 @@ TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': True,
'TEMPLATE_DEBUG': False
'OPTIONS': {
'debug': DEBUG,
}
},
{
'BACKEND': 'django.contrib.auth.context_processors.auth',
'TEMPLATE_DEBUG': False
'OPTIONS': {
'debug': DEBUG,
}
},
]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment