Skip to main content

ProductionConfig

Configuration for production deployments.

Attributes​

AttributeTypeDescription
SECRET_KEYstr = os.environ["SECRET_KEY"]Cryptographic key used for signing session cookies and securing sensitive data, retrieved from the environment's SECRET_KEY variable.
PAGE_SIZEint = DEFAULT_PAGE_SIZEThe maximum number of items to display per page in paginated API responses or views.

Methods​


get_cache_config()​

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

Retrieves the production-specific cache configuration settings.

Returns​

TypeDescription
Dict[str, Any]A dictionary containing the time-to-live (TTL) and maximum size constraints for the cache layer.