Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
campaign
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
piphone
campaign
Commits
ad8a14c3
Commit
ad8a14c3
authored
Jan 05, 2017
by
okhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating the syntax for the DEBUG in templates
parent
3ce175c2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
picampaign/importer/tests.py
picampaign/importer/tests.py
+0
-3
picampaign/settings.py.sample
picampaign/settings.py.sample
+6
-2
No files found.
picampaign/importer/tests.py
View file @
ad8a14c3
...
...
@@ -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'
)
...
...
picampaign/settings.py.sample
View file @
ad8a14c3
...
...
@@ -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,
}
},
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment