stgleb | 75c7041 | 2015-02-17 02:52:00 +0200 | [diff] [blame] | 1 | from config import DATABASE_URI |
2 | from flask import Flask | ||||
3 | from flask.ext.bootstrap import Bootstrap | ||||
4 | from flask.ext.sqlalchemy import SQLAlchemy | ||||
5 | |||||
6 | app = Flask(__name__) | ||||
7 | db = SQLAlchemy(app) | ||||
8 | app.config["SQLALCHEMY_DATABASE_URI"] = DATABASE_URI | ||||
9 | Bootstrap(app) |