File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ API_ROOT = {{ api_root | repr }}
2929{% if s 3_test | default (false ) %}
3030MEDIA_ROOT = ""
3131STORAGES = {
32+ "dynaconf_merge": True,
3233 "default": {
3334 "BACKEND": "storages.backends.s3boto3.S3Boto3Storage",
3435 "OPTIONS": {
@@ -52,6 +53,7 @@ S3_USE_SIGV4 = True
5253{% if azure_test | default (false ) %}
5354MEDIA_ROOT = ""
5455STORAGES = {
56+ "dynaconf_merge": True,
5557 "default": {
5658 "BACKEND": "storages.backends.azure_storage.AzureStorage",
5759 "OPTIONS": {
@@ -69,6 +71,7 @@ STORAGES = {
6971
7072{% if gcp_test | default (false ) %}
7173STORAGES = {
74+ "dynaconf_merge": True,
7275 "default": {
7376 "BACKEND": "storages.backends.gcloud.GoogleCloudStorage",
7477 "OPTIONS": {
Original file line number Diff line number Diff line change 5656STATIC_URL = "/assets/"
5757STATIC_ROOT = DEPLOY_ROOT / STATIC_URL .strip ("/" )
5858
59- STORAGES = {"default" : {"BACKEND" : "pulpcore.app.models.storage.FileSystem" }}
59+ STORAGES = {
60+ "default" : {"BACKEND" : "pulpcore.app.models.storage.FileSystem" },
61+ "staticfiles" : {
62+ # This is django's default, but when customizing STORAGES we need to add explicitly
63+ # https://docs.djangoproject.com/en/4.2/ref/settings/#storages
64+ "BACKEND" : "django.contrib.staticfiles.storage.StaticFilesStorage" ,
65+ },
66+ }
6067
6168REDIRECT_TO_OBJECT_STORAGE = True
6269
You can’t perform that action at this time.
0 commit comments