Move JSON pretty print config flag to the proper place
This commit is contained in:
parent
4c9a1c1621
commit
732ce83795
2 changed files with 1 additions and 4 deletions
|
@ -4,9 +4,6 @@ import os
|
||||||
from app import app as application
|
from app import app as application
|
||||||
from data.model import db as model_db
|
from data.model import db as model_db
|
||||||
|
|
||||||
# Turn off pretty printing of JSON responses since it can break Docker.
|
|
||||||
application.config['JSONIFY_PRETTYPRINT_REGULAR'] = False
|
|
||||||
|
|
||||||
# Initialize logging
|
# Initialize logging
|
||||||
application.config['LOGGING_CONFIG']()
|
application.config['LOGGING_CONFIG']()
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ from test import analytics as fake_analytics
|
||||||
|
|
||||||
class FlaskConfig(object):
|
class FlaskConfig(object):
|
||||||
SECRET_KEY = '1cb18882-6d12-440d-a4cc-b7430fb5f884'
|
SECRET_KEY = '1cb18882-6d12-440d-a4cc-b7430fb5f884'
|
||||||
|
JSONIFY_PRETTYPRINT_REGULAR = False
|
||||||
|
|
||||||
class FlaskProdConfig(FlaskConfig):
|
class FlaskProdConfig(FlaskConfig):
|
||||||
SESSION_COOKIE_SECURE = True
|
SESSION_COOKIE_SECURE = True
|
||||||
|
|
Reference in a new issue