2023-12-14 12:39:23 +01:00
|
|
|
from flask import Flask
|
2023-12-26 20:16:58 +01:00
|
|
|
from flask_login import LoginManager
|
|
|
|
from flask_wtf.csrf import CSRFProtect
|
|
|
|
from flask_bcrypt import Bcrypt
|
|
|
|
from config import Config
|
2023-12-14 12:39:23 +01:00
|
|
|
|
|
|
|
app = Flask(__name__)
|
2023-12-26 20:16:58 +01:00
|
|
|
app.config['SECRET_KEY'] = Config.secretKey
|
2024-01-11 22:38:09 +01:00
|
|
|
app.config['MAX_CONTENT_LENGTH'] = Config.maxFileSize * 1024 * 1024
|
2023-12-26 20:16:58 +01:00
|
|
|
csrf = CSRFProtect(app)
|
|
|
|
bcrypt = Bcrypt(app)
|
|
|
|
loginManager = LoginManager(app)
|
|
|
|
loginManager.login_view = 'login'
|
|
|
|
loginManager.login_message_category = 'info'
|
2023-12-14 12:39:23 +01:00
|
|
|
|
|
|
|
from app import routes
|