static to Amazon #2
This commit is contained in:
parent
49c6dc8f1d
commit
a660ffcc31
|
|
@ -13,7 +13,7 @@ AWS_S3_OBJECT_PARAMETERS = {'CacheControl': 'max-age=86400'}
|
|||
AWS_S3_ADDRESSING_STYLE = 'path'
|
||||
|
||||
# Static settings
|
||||
PUBLIC_STATIC_LOCATION = 'static'
|
||||
PUBLIC_STATIC_LOCATION = 'static-dev'
|
||||
STATIC_URL = f'https://{AWS_S3_CUSTOM_DOMAIN}/{PUBLIC_STATIC_LOCATION}/'
|
||||
STATICFILES_STORAGE = 'project.storage_backends.PublicStaticStorage'
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,11 @@ from .amazon_s3 import *
|
|||
import sentry_sdk
|
||||
from sentry_sdk.integrations.django import DjangoIntegration
|
||||
|
||||
|
||||
PUBLIC_STATIC_LOCATION = 'static'
|
||||
STATIC_URL = f'https://{AWS_S3_CUSTOM_DOMAIN}/{PUBLIC_STATIC_LOCATION}/'
|
||||
STATICFILES_STORAGE = 'project.storage_backends.PublicStaticStorage'
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = False
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user