From 3b10de6589ad33dcf359f41bf2c68224b528c7d2 Mon Sep 17 00:00:00 2001 From: Phung Xuan Anh Date: Sun, 19 Jan 2020 00:31:35 +0700 Subject: [PATCH] Change config sqlalchemy --- user/app/main/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/app/main/config.py b/user/app/main/config.py index 3e07edd..e8135ac 100644 --- a/user/app/main/config.py +++ b/user/app/main/config.py @@ -159,7 +159,7 @@ class DevelopmentConfig(Config): # SQLALCHEMY_DATABASE_URI = DATABASE_URL # # This configs for deploy on heroku - # SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] + # SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', DATABASE_URL) class TestingConfig(Config): @@ -173,7 +173,7 @@ class TestingConfig(Config): # SQLALCHEMY_DATABASE_URI = DATABASE_URL # # This configs for deploy on heroku - # SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] + SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', DATABASE_URL) class ProductionConfig(Config):