From ad8a14c361815a67c7867360b6194a1087f7c7cb Mon Sep 17 00:00:00 2001 From: okhin Date: Thu, 5 Jan 2017 13:12:35 +0100 Subject: [PATCH] Updating the syntax for the DEBUG in templates --- picampaign/importer/tests.py | 3 --- picampaign/settings.py.sample | 8 ++++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/picampaign/importer/tests.py b/picampaign/importer/tests.py index ef861e4..7d65211 100644 --- a/picampaign/importer/tests.py +++ b/picampaign/importer/tests.py @@ -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') diff --git a/picampaign/settings.py.sample b/picampaign/settings.py.sample index 104da4f..90d1013 100644 --- a/picampaign/settings.py.sample +++ b/picampaign/settings.py.sample @@ -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, + } }, ] -- GitLab