Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add init_db() call to example/tweet.py #50

Open
destan opened this issue May 17, 2013 · 0 comments
Open

Add init_db() call to example/tweet.py #50

destan opened this issue May 17, 2013 · 0 comments

Comments

@destan
Copy link

destan commented May 17, 2013

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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant