igdb/code/app/__init__.py

15 lines
360 B
Python
Raw Normal View History

2020-01-08 05:51:10 +01:00
from flask import Flask
2020-01-08 21:31:00 +01:00
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_bootstrap import Bootstrap
2020-01-08 05:51:10 +01:00
app = Flask(__name__)
2020-01-08 21:31:00 +01:00
app.config.from_object(Config)
db = SQLAlchemy(app)
login = LoginManager(app)
login.login_view = "login"
bootstrap = Bootstrap(app)
2020-01-08 21:31:00 +01:00
from app import routes, models, errors