mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 22:05:09 +01:00
Strip unnecessary whitespace
This commit is contained in:
@@ -166,6 +166,10 @@ app = Flask(__name__)
|
|||||||
app.config.from_object(__name__)
|
app.config.from_object(__name__)
|
||||||
database = SqliteDatabase(os.path.join(APP_ROOT, 'bookmarks.db'))
|
database = SqliteDatabase(os.path.join(APP_ROOT, 'bookmarks.db'))
|
||||||
|
|
||||||
|
# Strip unnecessary whitespace due to jinja2 codeblocks
|
||||||
|
app.jinja_env.trim_blocks = True
|
||||||
|
app.jinja_env.lstrip_blocks = True
|
||||||
|
|
||||||
# set custom url for the app, for example '/bookmarks'
|
# set custom url for the app, for example '/bookmarks'
|
||||||
try:
|
try:
|
||||||
app.config['APPLICATION_ROOT'] = settings.APPLICATION_ROOT
|
app.config['APPLICATION_ROOT'] = settings.APPLICATION_ROOT
|
||||||
|
|||||||
Reference in New Issue
Block a user