mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-14 17:04:53 +03:00
Fix code style
This commit is contained in:
parent
4a1917b76a
commit
cf73cb62a3
|
@ -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
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user