Skip to content

Commit 441747e

Browse files
committed
serve examples locally for faster and offline development
1 parent ac1f3c0 commit 441747e

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Changelog
22
=========
33

4+
- Serve examples locally for faster and offline development.
45
- Upgrade to Bootstrap Icons 1.11.3.
56

67

examples/bootstrap4/app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
1515
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///:memory:'
1616

17+
# serve locally for faster and offline development
18+
app.config['BOOTSTRAP_SERVE_LOCAL'] = True
19+
1720
# set default button sytle and size, will be overwritten by macro parameters
1821
app.config['BOOTSTRAP_BTN_STYLE'] = 'primary'
1922
app.config['BOOTSTRAP_BTN_SIZE'] = 'sm'

examples/bootstrap5/app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
1515
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///:memory:'
1616

17+
# serve locally for faster and offline development
18+
app.config['BOOTSTRAP_SERVE_LOCAL'] = True
19+
1720
# set default button sytle and size, will be overwritten by macro parameters
1821
app.config['BOOTSTRAP_BTN_STYLE'] = 'primary'
1922
app.config['BOOTSTRAP_BTN_SIZE'] = 'sm'

0 commit comments

Comments
 (0)