From 6b49829c0f3eacb6c4516df97263f2424750613f Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Tue, 16 May 2017 22:03:04 +0200 Subject: [PATCH] Update app config --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index e4f4a73..7b8a1fd 100644 --- a/app.py +++ b/app.py @@ -4,7 +4,8 @@ from forms import ContactForm # Flask app = Flask(__name__) -app.secret_key = 'my secret' +app.config['SECRET_KEY'] = 'my secret' +app.config['DEBUG'] = True # Database app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///book.sqlite' @@ -107,5 +108,4 @@ def contacts_delete(): if __name__ == "__main__": - app.debug = True app.run()