Y3S2-IoT/flaskapp/__init__.py

15 lines
337 B
Python
Raw Permalink Normal View History

2020-06-09 20:34:42 +00:00
from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_bootstrap import Bootstrap
app = Flask(__name__)
app.config.from_object(Config)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
from flaskapp import routes, models, errors
bootstrap = Bootstrap(app)