server.py (509B) download
1from flask import Flask
2from flask_bcrypt import Bcrypt
3from flask_login import LoginManager
4from flask_sqlalchemy import SQLAlchemy
5
6app = Flask(__name__)
7app.config['SECRET_KEY'] = '5791628bb0b13ce0c676dfde280ba245'
8app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db'
9db = SQLAlchemy(app)
10bcrypt = Bcrypt(app)
11login_manager = LoginManager(app)
12login_manager.login_view = 'login'
13login_manager.login_message_category = 'info'
14
15# to run 'routes.py' and make the routes available
16from .routes import *