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 up os.environ

  • cast (func) – Function to cast str values.

uses_local_storage() bool
Return type:

bool

AWS_S3_CUSTOM_DOMAIN() str
Return type:

str

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:

str

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:

str

STATIC_DIR() Path
Return type:

Path

MEDIA_DIR()
DJANGO_APPS() Sequence[str]
Return type:

Sequence[str]

STORAGES() dict
Return type:

dict

templates_context_processors() Sequence[str]
Return type:

Sequence[str]