Skip to content

Commit

Permalink
Flask's JSONIFY_PRETTYPRINT_REGULAR is deprecated, switch to app.json…
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Aug 9, 2022
1 parent 4fc594f commit 20df89b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"""
from oauth_dropins.webutil import appengine_info, util

JSONIFY_PRETTYPRINT_REGULAR = True

if appengine_info.DEBUG:
ENV = 'development'
CACHE_TYPE = 'NullCache'
Expand Down
1 change: 1 addition & 0 deletions flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
# Flask app
app = Flask(__name__, static_folder=None)
app.template_folder = './templates'
app.json.compact = False
app.config.from_pyfile(Path(__file__).parent / 'config.py')
app.url_map.converters['regex'] = flask_util.RegexConverter
app.after_request(flask_util.default_modern_headers)
Expand Down

0 comments on commit 20df89b

Please sign in to comment.