from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from flask_admin import Admin



app = Flask(__name__)

app.config['SECRET_KEY'] = "1234bhdghuhfgh"
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///site.db"
# app.config['FLASK_ADMIN_SWATCH'] = 'cerulean'
app.config['FLASK_ADMIN_FLUID_LAYOUT'] = True

db = SQLAlchemy(app)
bcrypt = Bcrypt(app)

login_manager = LoginManager(app)
login_manager.login_view = 'login'
login_manager.login_message_category = 'info'

admin = Admin(app,name="Koseeke",template_mode='bootstrap4')


from app_package import routes