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 an environment variable or a fallback string.
DEBUGbool = falseFlag that enables or disables detailed error pages and development-specific features.
TESTINGbool = falseBoolean toggle that activates testing mode to suppress email sending and enable test-specific error reporting.
PAGE_SIZEint = DEFAULT_PAGE_SIZEInteger defining the number of records returned per request in paginated responses, constrained by a system-wide maximum.

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