This commit is contained in:
Yûki VACHOT 2021-12-01 15:48:25 +01:00
parent 2e9fbf14e9
commit 42a80609ab
4 changed files with 64 additions and 16 deletions

View file

@ -6,15 +6,17 @@ class Config(object):
TESTING = False
CSRF_ENABLED = True
SECRET_KEY = os.environ.get('SECRET_KEY', None)
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', None)
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI_1 = os.environ.get('DATABASE_URL_1', None)
SQLALCHEMY_DATABASE_URI_2 = os.environ.get('DATABASE_URL_2', None)
class ProductionConfig(Config):
DEBUG = False
class TestingConfig(Config):
TESTING = True
class StagingConfig(Config):
STAGING = True
class DevelopmentConfig(Config):