django-aliyun-oss2-storage
django-aliyun-oss2-storage copied to clipboard
django storage backend for aliyun oss2
class AliyunFile(File): def __init__(self, name, storage, mode): self._storage = storage self._name = name[len(self._storage.location)+1:] self._mode = mode self.file = six.BytesIO() self._is_dirty = False self._is_read = False super(AliyunFile, self).__init__(self.file, **self.name**) 这里应该改为self._name
尊敬的开发者您好,请合一下Pull requests 26 #26 以解决Windows下安装错误问题。
这个包是不是不能处理最新的sts访问策略?
你好,我在本地测试没有问题,部署到阿里云上出现504,我怀疑是nginx找不到media了,但是如何把media路径修改成oss呢,这是我现在的配置: `# the upstream component nginx needs to connect to upstream django { server unix://opt/uwsgitest/NewBlog/blog.sock; # for a file socket # server 127.0.0.1:8001; # for a web port socket (we'll...
ooking in indexes: https://mirrors.aliyun.com/pypi/simple/ Collecting django-aliyun-oss2-storage Downloading https://mirrors.aliyun.com/pypi/packages/cd/59/e22479bac1c97ba9af8b7ce6e3723cd4eea420a8715aa58ac49d631b9604/django-aliyun-oss2-storage-0.1.5.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "C:\Users\newpepsi\AppData\Local\Temp\pycharm-packaging\django-aliyun-oss2-storage\setup.py", line 5, in...
cname配置了CDN的域名,然后我们现在全站都是HTTPS了,CDN也是。但是目前这个库返回的URL都是http开头的。 Amazon的S3的话是有一个AWS_S3_SECURE_URLS的配置。 但是如果能够动态的根据django的SECURE_PROXY_SSL_HEADER来决定是HTTPS还是HTTP的话,那就最佳了。谢谢! https://docs.djangoproject.com/en/1.11/ref/settings/#std:setting-SECURE_PROXY_SSL_HEADER
博主你好,我直接在views里面定义相关的access_id & access_key进行验证oss,控制台输出可以返回一个oss的object,但是想去遍历这个的时候出现报错,如下: System check identified no issues (0 silenced). August 30, 2018 - 06:01:08 Django version 1.11, using settings 'mysite.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with...
{% static 'app/bootstrap/css/bootstrap.min.css'%} 被解析成http://xxxxxxx.oss-cn-hangzhou.aliyuncs.com/static%2Fapp%2Fbootstrap%2Fcss%2Fbootstrap.min.css 如果bootstrap.min.css包含相对路径的图片,那么就会出现问题,请问这个情况如何解决? 期望解析成http://xxxxxxx.oss-cn-hangzhou.aliyuncs.com/static/app/bootstrap/css/bootstrap.min.css
修复Bug.