mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Disable HTMLMIN with Python 2.6 as it doesn't work on that older version.
This commit is contained in:
parent
bc63652811
commit
670c8a2cc1
@ -172,6 +172,8 @@ SECURITY_PASSWORD_HASH = 'pbkdf2_sha512'
|
|||||||
# configuration databases 'keys' table and are auto-generated.
|
# configuration databases 'keys' table and are auto-generated.
|
||||||
|
|
||||||
# Should HTML be minified on the fly when not in debug mode?
|
# Should HTML be minified on the fly when not in debug mode?
|
||||||
|
# NOTE: The HTMLMIN module doesn't work with Python 2.6, so this option
|
||||||
|
# has no effect on <= Python 2.7.
|
||||||
MINIFY_PAGE = True
|
MINIFY_PAGE = True
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
@ -450,7 +450,8 @@ def create_app(app_name=None):
|
|||||||
##########################################################################
|
##########################################################################
|
||||||
# Minify output
|
# Minify output
|
||||||
##########################################################################
|
##########################################################################
|
||||||
if not config.DEBUG:
|
# HTMLMIN doesn't work with Python 2.6.
|
||||||
|
if not config.DEBUG and sys.version_info >= (2,7):
|
||||||
HTMLMIN(app)
|
HTMLMIN(app)
|
||||||
|
|
||||||
@app.context_processor
|
@app.context_processor
|
||||||
|
Loading…
Reference in New Issue
Block a user