add exclude-patterns option to flask run

This commit is contained in:
Mickaël Guérin 2021-07-06 13:32:45 +02:00 committed by David Lord
parent e06dad62f6
commit beae1249f7
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 33 additions and 1 deletions

View file

@ -262,6 +262,15 @@ separated with ``:``, or ``;`` on Windows.
* Detected change in '/path/to/file1', reloading
Ignore files with the Reloader
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The reloader can also ignore files using :mod:`fnmatch` patterns with
the ``--exclude-patterns`` option, or the ``FLASK_RUN_EXCLUDE_PATTERNS``
environment variable. Multiple patterns are separated with ``:``, or
``;`` on Windows.
Debug Mode
----------