loefsys.settings.storage module
Module containing the configuration for media storage.
- class loefsys.settings.storage.StorageSettings
Bases:
TemplateSettings
,BaseSettings
Class containing the configuration for media storage.
- AWS_STORAGE_BUCKET_NAME
property to make environment variable based settings simpler.
- Parameters:
default (Any) – default value If it’s a string, it will be passed to the
cast
function When used as a decorator, this is the method.key (str) – Override environment variable name (Defaults to class attribute name)
prefix (str) – Prefix to
key
when looking upos.environ
cast (func) – Function to cast
str
values.
- STATIC_URL() str
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to ‘utf-8’. errors defaults to ‘strict’.
- Return type:
- MEDIA_URL() str
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to ‘utf-8’. errors defaults to ‘strict’.
- Return type:
- STATIC_DIR() Path
- Return type:
Path
- MEDIA_DIR()