from flask import Flask
from flask_compress import Compress
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_socketio import SocketIO


app = Flask(__name__)
Compress(app)

app.config.from_object('config')
config = app.config
db = SQLAlchemy(app)

lm = LoginManager()
lm.init_app(app)
lm.login_view = 'login'
lm.session_protection = "strong"
lm.login_message = "Please log in to continue!"
lm.login_message_category = "alert-danger"

socket_io = SocketIO(app)

from DanceCat import Models, Views, ErrorViews, Socket
