mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-02 19:20:15 +03:00
Fixing URL bug with environment values
This commit is contained in:
parent
393780b3f1
commit
c8ee217dd7
|
@ -360,7 +360,11 @@ class Production(Common):
|
||||||
}
|
}
|
||||||
|
|
||||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
|
||||||
STATIC_URL = 'https://s3.amazonaws.com/%s/' % AWS_STORAGE_BUCKET_NAME
|
# A hack to fix this, because the default __repr__ of values will return <Value Default: foo>
|
||||||
|
# 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;/
|
||||||
|
# @burhan 2014-07-20
|
||||||
|
STATIC_URL = 'https://s3.amazonaws.com/%s/' % (AWS_STORAGE_BUCKET_NAME.setup('DJANGO_AWS_BUCKET_NAME'),)
|
||||||
########## END STORAGE CONFIGURATION
|
########## END STORAGE CONFIGURATION
|
||||||
|
|
||||||
########## EMAIL
|
########## EMAIL
|
||||||
|
|
Loading…
Reference in New Issue
Block a user