mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-11 04:07:48 +03:00
Use string interpolation in production STATIC_URL
This commit is contained in:
parent
fe110ddd5f
commit
fd15b20a08
|
@ -89,7 +89,7 @@ AWS_S3_OBJECT_PARAMETERS = {
|
|||
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
|
||||
{%- else %}
|
||||
STATICFILES_STORAGE = 'config.settings.production.StaticRootS3BotoStorage'
|
||||
STATIC_URL = 'https://s3.amazonaws.com/%s/static/' % AWS_STORAGE_BUCKET_NAME
|
||||
STATIC_URL = f'https://s3.amazonaws.com/{AWS_STORAGE_BUCKET_NAME}/static/'
|
||||
{%- endif %}
|
||||
|
||||
# MEDIA
|
||||
|
|
Loading…
Reference in New Issue
Block a user