Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

Commit e7b54ed

Browse files
committed
Adds Flask's app factory pattern to Readme.
1 parent 9ea8d13 commit e7b54ed

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,16 @@ Usage is pretty simple::
1818
app = Flask(__name__)
1919
heroku = Heroku(app)
2020

21-
Configuration is already setup::
21+
Configuration is already set up::
2222

2323
>>> app.config['SQLALCHEMY_DATABASE_URI']
2424
postgres://...
2525

26+
Alternatively, Flask's application factory pattern is supported::
27+
28+
heroku = Heroku()
29+
# Then, later...
30+
heroku.init_app(app)
2631

2732
Install
2833
-------

0 commit comments

Comments
 (0)