mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-03 03:30:19 +03:00
fixing configuration bug
This commit is contained in:
parent
d7fd314eeb
commit
24f544083e
|
@ -353,10 +353,10 @@ class Production(Common):
|
||||||
INSTALLED_APPS += ("collectfast", )
|
INSTALLED_APPS += ("collectfast", )
|
||||||
|
|
||||||
# AWS cache settings, don't change unless you know what you're doing:
|
# AWS cache settings, don't change unless you know what you're doing:
|
||||||
AWS_EXPIREY = 60 * 60 * 24 * 7
|
AWS_EXPIRY = 60 * 60 * 24 * 7
|
||||||
AWS_HEADERS = {
|
AWS_HEADERS = {
|
||||||
'Cache-Control': 'max-age=%d, s-maxage=%d, must-revalidate' % (AWS_EXPIREY,
|
'Cache-Control': 'max-age=%d, s-maxage=%d, must-revalidate' % (AWS_EXPIRY,
|
||||||
AWS_EXPIREY)
|
AWS_EXPIRY)
|
||||||
}
|
}
|
||||||
|
|
||||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
|
||||||
|
@ -364,7 +364,7 @@ class Production(Common):
|
||||||
# if foo is the default, or whatever the value of the environment variable.
|
# if foo is the default, or whatever the value of the environment variable.
|
||||||
# This causes the URL to be https://s3.amazonaws.com/<Value%20Default:%20foo%gt;/
|
# This causes the URL to be https://s3.amazonaws.com/<Value%20Default:%20foo%gt;/
|
||||||
# @burhan 2014-07-20
|
# @burhan 2014-07-20
|
||||||
STATIC_URL = 'https://s3.amazonaws.com/%s/' % (AWS_STORAGE_BUCKET_NAME,)
|
STATIC_URL = 'https://s3.amazonaws.com/%s/' % (AWS_STORAGE_BUCKET_NAME.to_python('DJANGO_AWS_BUCKET_NAME'),)
|
||||||
########## END STORAGE CONFIGURATION
|
########## END STORAGE CONFIGURATION
|
||||||
|
|
||||||
########## EMAIL
|
########## EMAIL
|
||||||
|
|
Loading…
Reference in New Issue
Block a user