2019-04-11 21:56:55 +00:00
|
|
|
from flask import Flask
|
2019-01-13 19:07:46 +00:00
|
|
|
from flask_sqlalchemy import SQLAlchemy
|
2019-01-14 23:25:42 +00:00
|
|
|
from flask_bcrypt import Bcrypt
|
2019-04-11 21:56:55 +00:00
|
|
|
from .controller.accesTokenController import AccesTokenController
|
|
|
|
# from flask_login import LoginManager
|
2019-01-13 19:07:46 +00:00
|
|
|
|
|
|
|
app = Flask(__name__)
|
2019-04-11 21:56:55 +00:00
|
|
|
# app.config['SECRET_KEY'] = '0a657b97ef546da90b2db91862ad4e29'
|
2019-01-13 19:07:46 +00:00
|
|
|
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db'
|
|
|
|
db = SQLAlchemy(app)
|
2019-01-14 23:25:42 +00:00
|
|
|
bcrypt = Bcrypt(app)
|
2019-04-11 21:56:55 +00:00
|
|
|
accesTokenController = AccesTokenController()
|
|
|
|
# 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 23:25:25 +00:00
|
|
|
|
2019-04-11 21:56:55 +00:00
|
|
|
from geruecht import routes
|