معرفی شرکت ها


django-aliyun-oss2-0.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A simple Django storage backend for aliyun oss2.
ویژگی مقدار
سیستم عامل -
نام فایل django-aliyun-oss2-0.2
نام django-aliyun-oss2
نسخه کتابخانه 0.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Sai628
ایمیل نویسنده sai100628@gmail.com
آدرس صفحه اصلی https://github.com/sai628/django-aliyun-oss2
آدرس اینترنتی https://pypi.org/project/django-aliyun-oss2/
مجوز MIT License
## Django aliyun OSS2 Django storage for [aliyun OSS](https://www.aliyun.com/product/oss) ## Features - Django file storage for aliyun OSS - Django static file storage for aliyun OSS - Works in Python 3+ ## Install ```bash $ pip install django-aliyun-oss2 ``` ## Configurations put the following config in your `settings.py` file: ```python ACCESS_KEY_ID = "<your access key id>" ACCESS_KEY_SECRET = "<your access key secret>" # The URL of AliCloud OSS endpoint # Refer https://www.alibabacloud.com/help/zh/doc-detail/31837.htm for OSS Region & Endpoint END_POINT = "<your access endpoint>" BUCKET_NAME = "<your bucket name>" # if not exist in aliyun oss platform, it will created automatically ALIYUN_OSS_CNAME = "" # custom domain. optional BUCKET_ACL_TYPE = "private" # bucket access type. available value: private, public-read, public-read-write ALIYUN_OSS_HTTPS = False # optional config. determine use https or not. if not declare, this value will be False by default. # storage media file DEFAULT_FILE_STORAGE = 'django_aliyun_oss2.backends.AliyunMediaStorage' # storage static file STATICFILES_STORAGE = 'django_aliyun_oss2.backends.AliyunStaticStorage' ``` ## Usage All of the static file storage settings are available for the staticfiles storage. ```python # The default location for your static files STATIC_URL = '/static/' ``` Run following command to collect all sub-folder `static` of each app and upload to STATIC_URL: ```bash $ python manage.py collectstatic ``` ## License MIT LICENSE


نحوه نصب


نصب پکیج whl django-aliyun-oss2-0.2:

    pip install django-aliyun-oss2-0.2.whl


نصب پکیج tar.gz django-aliyun-oss2-0.2:

    pip install django-aliyun-oss2-0.2.tar.gz