Skip to content

Commit

Permalink
enable auto reload of changed Jinja2 templates
Browse files Browse the repository at this point in the history
  • Loading branch information
lucebac committed Dec 20, 2018
1 parent 3990d5a commit 3e01d4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

app = Flask(__name__, template_folder='web/templates', static_folder='web/static')
app.secret_key = fame_config.secret_key
app.config['TEMPLATES_AUTO_RELOAD'] = True

# Set two tempalte folders (one is for modules)
template_loader = jinja2.ChoiceLoader([
Expand Down

0 comments on commit 3e01d4f

Please sign in to comment.