flaschengeist/geruecht/__init__.py

17 lines
468 B
Python
Raw Normal View History

from flask import Flask, g
2019-01-13 19:07:46 +00:00
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
2019-01-13 19:07:46 +00:00
app = Flask(__name__)
app.config['SECRET_KEY'] = '0a657b97ef546da90b2db91862ad4e29'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db'
db = SQLAlchemy(app)
bcrypt = Bcrypt(app)
login_manager = LoginManager(app)
login_manager.login_view = 'login'
login_manager.login_message_category = 'info'
2019-01-13 19:07:46 +00:00
2019-01-13 19:07:46 +00:00
from geruecht import routes