diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/config/settings.py b/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/config/settings.py index 872b78075..590def49f 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/config/settings.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/config/settings.py @@ -360,7 +360,11 @@ class Production(Common): } # 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 + # 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 ########## EMAIL