mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-11 04:07:48 +03:00
Add noqa to ignore ruff false positive (#5068)
This commit is contained in:
parent
4710101acd
commit
e9f029decf
|
@ -309,7 +309,8 @@ COMPRESS_STORAGE = "compressor.storage.GzipCompressorFileStorage"
|
||||||
COMPRESS_STORAGE = STORAGES["staticfiles"]["BACKEND"]
|
COMPRESS_STORAGE = STORAGES["staticfiles"]["BACKEND"]
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
# https://django-compressor.readthedocs.io/en/latest/settings/#django.conf.settings.COMPRESS_URL
|
# https://django-compressor.readthedocs.io/en/latest/settings/#django.conf.settings.COMPRESS_URL
|
||||||
COMPRESS_URL = STATIC_URL{% if cookiecutter.use_whitenoise == 'y' or cookiecutter.cloud_provider == 'None' %}{% endif %}
|
COMPRESS_URL = STATIC_URL{% if cookiecutter.use_whitenoise == 'y' or cookiecutter.cloud_provider == 'None' %} # noqa: F405
|
||||||
|
{%- endif -%}
|
||||||
{%- if cookiecutter.use_whitenoise == 'y' %}
|
{%- if cookiecutter.use_whitenoise == 'y' %}
|
||||||
# https://django-compressor.readthedocs.io/en/latest/settings/#django.conf.settings.COMPRESS_OFFLINE
|
# https://django-compressor.readthedocs.io/en/latest/settings/#django.conf.settings.COMPRESS_OFFLINE
|
||||||
COMPRESS_OFFLINE = True # Offline compression is required when using Whitenoise
|
COMPRESS_OFFLINE = True # Offline compression is required when using Whitenoise
|
||||||
|
|
Loading…
Reference in New Issue
Block a user