BaseConfig
Base configuration shared across all environments.
Attributes
| Attribute | Type | Description |
|---|---|---|
| SECRET_KEY | string = 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. |
| DEBUG | boolean = False | Enables debug mode, which provides more detailed error messages and logging. Defaults to False. |
| TESTING | boolean = False | Enables testing mode, which may alter application behavior for testing purposes. Defaults to False. |
| PAGE_SIZE | integer = DEFAULT_PAGE_SIZE | The 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
| Type | Description |
|---|---|
Dict[str, Any] | A dictionary containing cache configuration settings. |