django storage config for django version >= 4.2
aakas

aakas @aakas

About: A learner

Joined:
Mar 28, 2020

django storage config for django version >= 4.2

Publish Date: Apr 19
0 0

Use the config

STORAGES = {
    "default": {
        "BACKEND": "storages.backends.s3.S3Storage",
    },
    "staticfiles": {
        "BACKEND": "storages.backends.s3.S3Storage",
    },
}
Enter fullscreen mode Exit fullscreen mode

instead of

DEFAULT_FILE_STORAGE = "storages.backends.s3.S3Storage"
STATICFILES_STORAGE = "storages.backends.s3.S3Storage"

Enter fullscreen mode Exit fullscreen mode

Comments 0 total

    Add comment