From c8a9404bf6fa99f838400a5a064635798c2ba9cf Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Sun, 7 Aug 2016 13:18:39 +0200 Subject: [PATCH] fixed use of os.environ --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index ded5248..fd66ba5 100644 --- a/config.py +++ b/config.py @@ -27,7 +27,7 @@ class Config: class DevelopmentConfig(Config): SECURITY_SEND_REGISTER_EMAIL = False DEBUG = True - SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:%s@database/pitstops' % (os.environ['DATABASE_ENV_MYSQL_ROOT_PASSWORD']) + SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:%s@database/pitstops' % (os.environ.get('DATABASE_ENV_MYSQL_ROOT_PASSWORD')) class TestingConfig(Config):