Skip to main content

BaseConfig

Base configuration shared across all environments.

Attributes

AttributeTypeDescription
SECRET_KEYstring = os.environ.get("SECRET_KEY", "change-me")The secret key used for signing session cookies and other security-sensitive operations. Defaults to 'change-me' if the SECRET_KEY environment variable is not set.
DEBUGboolean = FalseEnables debug mode, which provides more detailed error messages and logging. Defaults to False.
TESTINGboolean = FalseEnables testing mode, which may alter application behavior for testing purposes. Defaults to False.
PAGE_SIZEinteger = DEFAULT_PAGE_SIZEThe default number of items to display per page in paginated results. Defaults to DEFAULT_PAGE_SIZE.

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 cache configuration settings.