Predict the twitter user of a tweet: model return the most likely twitter users who would have twitted the tweet.
Create .flaskenv to specification to export
$ flask db init
Run both when changing the schema:
$ flask db migrate
$ flask db upgrade
$ flask shell # go to flash python shell to create all tables for the db
>>> from web_app.models import db
>>> db.create_all()
Run the web app after store flask configurations in .flaskenv :
flask run
source: https://devcenter.heroku.com/articles/heroku-postgresql#provisioning-heroku-postgres