Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask import Flask
- from flask_sqlalchemy import SQLAlchemy
- from flask_migrate import Migrate
- from flask_login import LoginManager
- app = Flask(__name__)
- open('/home/rivaniuk/dev/study/speech/flask_app/app/mod_recognition/results/result.txt', 'w').close()
- app.config['SECRET_KEY'] = '\x15"\xf9\x90OpR\xc5o;!\x12L\xbf\xe0*\xb5\xf4\xcfR\xe7\xc1\xc8\xb5'
- app.config['SQLALCHEMY_DATABASE_URI'] = "postgresql://postgres:bane@localhost/speech"
- app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
- db = SQLAlchemy(app)
- migrate = Migrate(app, db)
- login_manager = LoginManager()
- login_manager.init_app(app)
- from .mod_interface import controllers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement