Skip to content

Commit

Permalink
change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ford Guo committed Aug 27, 2019
1 parent 11f182e commit d0994a7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ git+https://github.com/fordguo/django-storage-qcloud.git

- 配置 setting.py:
- 将上传文件存放到云
`DEFAULT_FILE_STORAGE = 'django_storage.qcloud.QcloudStorage'`
`DEFAULT_FILE_STORAGE = 'django_storage_qcloud.storage.QcloudStorage'`
- 将静态文件存放到云
`STATICFILES_STORAGE = 'django_storage.qcloud.QcloudStorage'`
`STATICFILES_STORAGE = 'django_storage_qcloud.storage.QcloudStorage'`
- 替换 SecretId, SecretKey, Region, Bucket 的值
```
QCLOUD_STORAGE_OPTION = {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def url(self, name):

if getattr(settings, 'COS_URL', ''):
url = "{}/{}".format(settings.COS_URL, name)
elif getattr(settings, 'COS_USE_CDN', False):
elif getattr(settings, 'COS_FAST_CDN', False):
url = "https://{}.file.myqcloud.com/{}".format(
self.bucket, name)
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
AUTHOR = "Ford"
AUTHOR_EMAIL = "agile.guo@gmail.com"
URL = "https://github.com/fordguo/django-storage-qcloud"
VERSION = '0.1.3'
VERSION = '0.2.0'

setup(
name=NAME,
Expand Down

0 comments on commit d0994a7

Please sign in to comment.