commit | 75c7041ee0a460e085eda74baa5a5e0cac76877a | [log] [tgz] |
---|---|---|
author | stgleb <glebstepanov1992@gmail.com> | Tue Feb 17 02:52:00 2015 +0200 |
committer | gstepanov <gstepanov@mirantis.com> | Fri Feb 20 12:04:23 2015 +0200 |
tree | f691d4994a89eb5691de3c053600254fa28be5f2 | |
parent | 4ec0f710b6b129c539e6cfc778802e5ae594cbcb [diff] [blame] |
MOL 186, migration from file storage to SQL Databse
diff --git a/web_app/app.py b/web_app/app.py new file mode 100644 index 0000000..b67c804 --- /dev/null +++ b/web_app/app.py
@@ -0,0 +1,10 @@ +from config import DATABASE_URI +from flask import Flask +from flask.ext.bootstrap import Bootstrap +from flask.ext.sqlalchemy import SQLAlchemy + +app = Flask(__name__) +db = SQLAlchemy(app) +app.config["SQLALCHEMY_DATABASE_URI"] = DATABASE_URI +Bootstrap(app) +