Skip to content

Commit

Permalink
config
Browse files Browse the repository at this point in the history
  • Loading branch information
Crispy-rw committed May 31, 2023
1 parent 4443a1d commit 035f3be
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class Config():
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
JSON_SORT_KEYS = False
# Configs loaded from env
SECRET_KEY = os.getenv('SECRET_KEY')
PRIVATE_KEY = os.getenv('PRIVATE_KEY')


Expand All @@ -34,30 +33,7 @@ class ProductionConfig(Config):
"pool_size": 90,
}


class DevelopmentConfig(Config):
DEVELOPMENT = True
DEBUG = True
TESTING = True
# SQLAlchemy Config
SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URI')
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ECHO = True


class TestingConfig(Config):
DEVELOPMENT = True
DEBUG = True
TESTING = True
# SQLAlchemy Config
SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URI') + '_test'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ECHO = True


api_config = {
'development': DevelopmentConfig,
'testing': TestingConfig,
'production': ProductionConfig,
}

0 comments on commit 035f3be

Please sign in to comment.