Skip to main content

BaseConfig

Base configuration shared across all environments.

Attributes

AttributeTypeDescription
SECRET_KEYstr = change-meCryptographic key used for signing session cookies and protecting sensitive data, defaulting to the 'SECRET_KEY' environment variable or 'change-me'.
DEBUGbool = falseFlag that enables or disables debug mode to provide detailed error messages and live reloading during development.
TESTINGbool = falseBoolean toggle that activates testing mode to suppress email sending and enable exception propagation for test suites.
PAGE_SIZEint = DEFAULT_PAGE_SIZEThe number of records to return per page in paginated API responses, constrained by the system's maximum page size.

Constructor

Signature

def BaseConfig() - > null

Methods


get_cache_config()

@classmethod
def get_cache_config() - > Dict[str, Any]

Return cache settings for this environment.

Returns

TypeDescription
Dict[str, Any]A dictionary containing the environment-specific cache configuration settings