Update production.py

"storages" does not need to be added to INSTALLED_APPS: https://github.com/jschneier/django-storages/pull/547
This commit is contained in:
Marlon Castillo 2024-09-08 00:16:12 +00:00 committed by GitHub
parent e956b831a5
commit 3f85e21f78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,12 +78,6 @@ SECURE_CONTENT_TYPE_NOSNIFF = env.bool(
default=True,
)
{% if cookiecutter.cloud_provider != 'None' -%}
# STORAGES
# ------------------------------------------------------------------------------
# https://django-storages.readthedocs.io/en/latest/#installation
INSTALLED_APPS += ["storages"]
{%- endif -%}
{% if cookiecutter.cloud_provider == 'AWS' %}
# https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#settings
AWS_ACCESS_KEY_ID = env("DJANGO_AWS_ACCESS_KEY_ID")