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): ...@@ -37,7 +37,6 @@ class ImporterTest(TestCase):
name='test importer', name='test importer',
category='repr', category='repr',
campaign=self.campaign, campaign=self.campaign,
organization=self.organization
) )
self.assertEqual(str(importer), u'%(name)s: %(format)s %(type)s importer' % {'format': importer.category, self.assertEqual(str(importer), u'%(name)s: %(format)s %(type)s importer' % {'format': importer.category,
'type': importer.kind(), 'type': importer.kind(),
...@@ -48,7 +47,6 @@ class ImporterTest(TestCase): ...@@ -48,7 +47,6 @@ class ImporterTest(TestCase):
name='test importer', name='test importer',
category='repr', category='repr',
campaign = self.campaign, campaign = self.campaign,
organization = self.organization,
) )
self.assertEqual(importer.kind(), None) self.assertEqual(importer.kind(), None)
importer.file = 'a' importer.file = 'a'
...@@ -65,7 +63,6 @@ class ImporterTest(TestCase): ...@@ -65,7 +63,6 @@ class ImporterTest(TestCase):
name='test importer', name='test importer',
category='repr', category='repr',
campaign = self.campaign, campaign = self.campaign,
organization = self.organization,
file=json_file file=json_file
) )
self.assertEqual(importer.kind(), 'file') self.assertEqual(importer.kind(), 'file')
......
...@@ -104,10 +104,14 @@ TEMPLATES = [ ...@@ -104,10 +104,14 @@ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': True, 'APP_DIRS': True,
'TEMPLATE_DEBUG': False 'OPTIONS': {
'debug': DEBUG,
}
}, },
{ {
'BACKEND': 'django.contrib.auth.context_processors.auth', '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