flask-oauth icon indicating copy to clipboard operation
flask-oauth copied to clipboard

Add init_db() call to example/tweet.py

Open destan opened this issue 11 years ago • 0 comments

To launch the twitter example and use successfully, the db must be initialized.

https://github.com/mitsuhiko/flask-oauth/blob/master/example/tweet.py#L180

diff --git a/example/tweet.py b/example/tweet.py
index 536836a..2462345 100644
--- a/example/tweet.py
+++ b/example/tweet.py
@@ -178,4 +178,5 @@ def oauth_authorized(resp):


 if __name__ == '__main__':
+    init_db()
     app.run()

destan avatar May 17 '13 16:05 destan