Skip to content

Commit

Permalink
quito elementos innecesarios
Browse files Browse the repository at this point in the history
  • Loading branch information
mpvaldez committed Jul 23, 2024
1 parent d73c88f commit 34be492
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions blog/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"

# Configuración de almacenamiento estático y de medios
STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'

# Configuración de AWS S3 para DigitalOcean Spaces
AWS_S3_FILE_OVERWRITE = False
Expand All @@ -23,12 +26,6 @@
'CacheControl': 'max-age=86400',
}

# Configuración de almacenamiento estático y de medios
STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'

STATIC_URL = f'https://{AWS_STORAGE_BUCKET_NAME}.{AWS_S3_ENDPOINT_URL}/{AWS_LOCATION}/static/'
MEDIA_URL = f'https://{AWS_STORAGE_BUCKET_NAME}.{AWS_S3_ENDPOINT_URL}/{AWS_LOCATION}/media/'

try:
from .local import *
Expand Down

0 comments on commit 34be492

Please sign in to comment.