mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-03 03:30:19 +03:00
Merge branch 'master' of github.com:burhan/cookiecutter-django
* 'master' of github.com:burhan/cookiecutter-django: fixing env. value to match documentation Fixing URL bug with environment values adding to contributors
This commit is contained in:
commit
90e76d1566
|
@ -20,6 +20,7 @@ Yaroslav Halchenko
|
|||
Pablo / @oubiga
|
||||
Tom Atkins / @knitatoms
|
||||
Julio Castillo / @juliocc
|
||||
Burhan Khalid / @burhan
|
||||
|
||||
* Possesses commit rights
|
||||
|
||||
|
|
|
@ -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 <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_STORAGE_BUCKET_NAME'),)
|
||||
########## END STORAGE CONFIGURATION
|
||||
|
||||
########## EMAIL
|
||||
|
|
Loading…
Reference in New Issue
Block a user