mirror of
https://github.com/jackeilles/xygt.git
synced 2024-11-09 16:32:37 +01:00
15 lines
No EOL
405 B
Python
15 lines
No EOL
405 B
Python
from flask import Flask
|
|
from flask_login import LoginManager
|
|
from flask_wtf.csrf import CSRFProtect
|
|
from flask_bcrypt import Bcrypt
|
|
from config import Config
|
|
|
|
app = Flask(__name__)
|
|
app.config['SECRET_KEY'] = Config.secretKey
|
|
csrf = CSRFProtect(app)
|
|
bcrypt = Bcrypt(app)
|
|
loginManager = LoginManager(app)
|
|
loginManager.login_view = 'login'
|
|
loginManager.login_message_category = 'info'
|
|
|
|
from app import routes |