Fix code style

This commit is contained in:
Bruno Alla 2023-07-14 20:11:54 +01:00 committed by Manan Bhavsar
parent 4a1917b76a
commit cf73cb62a3

View File

@ -106,34 +106,34 @@ AZURE_CONTAINER = env("DJANGO_AZURE_CONTAINER_NAME")
# STATIC & MEDIA # STATIC & MEDIA
# ------------------------ # ------------------------
STORAGES = { STORAGES = {
{%- if cookiecutter.use_whitenoise == 'y' -%} {%- if cookiecutter.use_whitenoise == 'y' %}
"staticfiles": { "staticfiles": {
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage", "BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
} },
{%- elif cookiecutter.cloud_provider == 'AWS' -%} {%- elif cookiecutter.cloud_provider == 'AWS' %}
"default": { "default": {
"BACKEND": "{{cookiecutter.project_slug}}.utils.storages.MediaRootS3Boto3Storage", "BACKEND": "{{cookiecutter.project_slug}}.utils.storages.MediaRootS3Boto3Storage",
}, },
"staticfiles": { "staticfiles": {
"BACKEND": "{{cookiecutter.project_slug}}.utils.storages.StaticRootS3Boto3Storage", "BACKEND": "{{cookiecutter.project_slug}}.utils.storages.StaticRootS3Boto3Storage",
} },
{%- elif cookiecutter.cloud_provider == 'GCP' -%} {%- elif cookiecutter.cloud_provider == 'GCP' %}
"default": { "default": {
"BACKEND": "{{cookiecutter.project_slug}}.utils.storages.MediaRootGoogleCloudStorage", "BACKEND": "{{cookiecutter.project_slug}}.utils.storages.MediaRootGoogleCloudStorage",
}, },
"staticfiles": { "staticfiles": {
"BACKEND": "{{cookiecutter.project_slug}}.utils.storages.StaticRootGoogleCloudStorage", "BACKEND": "{{cookiecutter.project_slug}}.utils.storages.StaticRootGoogleCloudStorage",
} },
{%- elif cookiecutter.cloud_provider == 'Azure' -%} {%- elif cookiecutter.cloud_provider == 'Azure' %}
"default": { "default": {
"BACKEND": "{{cookiecutter.project_slug}}.utils.storages.MediaRootAzureStorage", "BACKEND": "{{cookiecutter.project_slug}}.utils.storages.MediaRootAzureStorage",
}, },
"staticfiles": { "staticfiles": {
"BACKEND": "{{cookiecutter.project_slug}}.utils.storages.StaticRootAzureStorage", "BACKEND": "{{cookiecutter.project_slug}}.utils.storages.StaticRootAzureStorage",
} },
{%- endif -%} {%- endif %}
} }
{% endif -%} {%- endif %}
# MEDIA_URL, STATIC_URL & COLLECTFAST_STRATEGY # MEDIA_URL, STATIC_URL & COLLECTFAST_STRATEGY
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------