From 2487ac40303951247e8ed5cc97ad709303dcbc8d Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Thu, 18 May 2017 19:05:34 +0200 Subject: [PATCH] Fixbug bool config --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 99ba32f..5cd9a3f 100644 --- a/app.py +++ b/app.py @@ -1,4 +1,5 @@ from os import getenv +from ast import literal_eval from flask import Flask, redirect, url_for, render_template, flash, session from functools import wraps from forms import LoginForm, SignupForm, EmailResetPasswordForm, ResetPasswordForm @@ -11,7 +12,7 @@ from crypt import crypt, mksalt, METHOD_SHA512 # Flask app = Flask(__name__) app.config['SECRET_KEY'] = getenv('SECRET_KEY') -app.config['DEBUG'] = bool(getenv('DEBUG')) +app.config['DEBUG'] = literal_eval(getenv('DEBUG')) # Database app.config['SQLALCHEMY_DATABASE_URI'] = getenv('SQLALCHEMY_DATABASE_URI')