Skip to content
Snippets Groups Projects
Verified Commit a42e4720 authored by Mark's avatar Mark
Browse files

Add debugging mode

parent ac4dd53f
No related branches found
No related tags found
1 merge request!3Change login provider backend to graphql
...@@ -10,6 +10,7 @@ HYDRA_ADMIN_URL = environ['HYDRA_ADMIN_URL'] ...@@ -10,6 +10,7 @@ HYDRA_ADMIN_URL = environ['HYDRA_ADMIN_URL']
app = Flask(__name__) app = Flask(__name__)
app.config['SECRET_KEY'] = urandom(16) app.config['SECRET_KEY'] = urandom(16)
app.debug = True if "DEBUG" in environ and environ["DEBUG"] else False
login_manager = LoginManager() login_manager = LoginManager()
login_manager.init_app(app) login_manager.init_app(app)
...@@ -69,3 +70,6 @@ def logout(): ...@@ -69,3 +70,6 @@ def logout():
if logout_form.validate(): if logout_form.validate():
logout_user() logout_user()
return redirect(url_for('home')) return redirect(url_for('home'))
if __name__ == '__main__':
app.run()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment