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):