Skip to content

Commit

Permalink
Document DEBUG mode for Flask in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Nov 16, 2016
1 parent 7e2345f commit ff0d74f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ Wrap Flask with livereload is much simpler:
# app is a Flask object
app = create_app()
# remember to use DEBUG mode for templates auto reload
# https://github.com/lepture/python-livereload/issues/144
app.debug = True
server = Server(app.wsgi_app)
# server.watch
server.serve()
Expand Down

0 comments on commit ff0d74f

Please sign in to comment.