fairdm.conf.settings.static_media#

Static and media file settings: WhiteNoise, storages and thumbnails.

Owns static serving via WhiteNoise and media storage. Media storage is the local filesystem, switching to S3 when S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY and S3_BUCKET_NAME are all present. Backups follow the media: the local backup directory, or the media bucket under backups (BACKUP_S3_BUCKET_NAME names another bucket). A portal supplies thumbnail aliases beyond the four core content types, and any STORAGES entry it wants to add.

Module Contents#

Data#

API#

env#

None

BASE_DIR#

None

SITE_DOMAIN#

None

logger#

‘getLogger(…)’

STATIC_ROOT#

‘str(…)’

STATIC_URL#

‘/static/’

STATICFILES_FINDERS#

[‘django.contrib.staticfiles.finders.FileSystemFinder’, ‘django.contrib.staticfiles.finders.AppDirec…

MEDIA_ROOT#

‘str(…)’

MEDIA_URL#

‘/media/’

WHITENOISE_MANIFEST_STRICT#

False

STORAGES#

None

AWS_ACCESS_KEY_ID#

‘env(…)’

AWS_SECRET_ACCESS_KEY#

‘env(…)’

AWS_STORAGE_BUCKET_NAME#

‘env(…)’

AWS_S3_REGION_NAME#

‘env(…)’

DATA_UPLOAD_MAX_MEMORY_SIZE#

None

THUMBNAIL_CACHE_DIMENSIONS#

True

THUMBNAIL_SUBDIR#

‘thumbs’

THUMBNAIL_DEBUG#

False

THUMBNAIL_ALIASES#

None

THUMBNAIL_PROCESSORS#

[‘easy_thumbnails.processors.colorspace’, ‘easy_thumbnails.processors.autocrop’, ‘easy_thumbnails.pr…

THUMBNAIL_WIDGET_OPTIONS#

None