fixed use of os.environ

This commit is contained in:
Joachim Lusiardi 2016-08-07 13:18:39 +02:00
parent 4acf36112c
commit c8a9404bf6
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class Config:
class DevelopmentConfig(Config): class DevelopmentConfig(Config):
SECURITY_SEND_REGISTER_EMAIL = False SECURITY_SEND_REGISTER_EMAIL = False
DEBUG = True 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): class TestingConfig(Config):