Remove any unwanted white-spaces while renderting any template in template code

This commit is contained in:
Murtuza Zabuawala 2015-12-22 10:43:24 +05:30 committed by Ashesh Vashi
parent 1391003e03
commit 5f890dadc9

View File

@ -95,6 +95,8 @@ def create_app(app_name=config.APP_NAME):
"""Create the Flask application, startup logging and dynamically load """Create the Flask application, startup logging and dynamically load
additional modules (blueprints) that are found in this directory.""" additional modules (blueprints) that are found in this directory."""
app = PgAdmin(__name__, static_url_path='/static') app = PgAdmin(__name__, static_url_path='/static')
# Removes unwanted whitespace from render_template function
app.jinja_env.trim_blocks = True
app.config.from_object(config) app.config.from_object(config)
########################################################################## ##########################################################################