This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/app.py

18 lines
373 B
Python
Raw Normal View History

2013-09-23 16:37:40 +00:00
import logging
from flask import Flask
from flask.ext.principal import Principal
from flask.ext.login import LoginManager
2013-09-23 16:37:40 +00:00
app = Flask(__name__)
2013-09-23 16:37:40 +00:00
logger = logging.getLogger(__name__)
Principal(app, use_sessions=False)
2013-09-23 16:37:40 +00:00
app.secret_key = '1cb18882-6d12-440d-a4cc-b7430fb5f884'
login_manager = LoginManager()
login_manager.init_app(app)
login_manager.login_view = 'signin'