Created
August 31, 2016 09:01
-
-
Save tehasdf/ad30042b16dc967a07adc75763a49ae0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from flask import Flask | |
from manager_rest.storage.sql_models import db | |
app = Flask(__name__) | |
app.config['SQLALCHEMY_DATABASE_URI'] = sys.argv[1] | |
db.init_app(app) | |
with app.app_context(): | |
db.create_all() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment