LIL*_*ILI 18 django amazon-s3 boto
缩略图URLS中包含参数.我不知道为什么.我认为它们与我们正在使用的sorl-thumbnail或boto存储有关.如何从URL中删除其他参数?他们是来自boto/s3还是sorl.我不知道如何调试.
mag*_*gon 64
使用:AWS_QUERYSTRING_AUTH = False
对我有用:AWS_QUERYSTRING_AUTH = False
使用这个https://github.com/mstarinteractive/django-s3storage
from myapp.s3storage import S3BotoStorage
from django.contrib.staticfiles.storage import CachedFilesMixin
class CachedStaticS3BotoStorage(CachedFilesMixin, S3BotoStorage):
"""Extends S3BotoStorage to save static files with hashed filenames."""
pass
StaticRootS3BotoStorage = lambda: CachedStaticS3BotoStorage(location='static')
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8104 次 |
| 最近记录: |