{ "info": { "author": "Sai628", "author_email": "sai100628@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.6", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "## Django aliyun OSS2\n\nDjango storage for [aliyun OSS](https://www.aliyun.com/product/oss)\n\n\n## Features\n\n- Django file storage for aliyun OSS\n- Django static file storage for aliyun OSS\n- Works in Python 3+\n\n## Install\n\n```bash\n$ pip install django-aliyun-oss2\n```\n\n## Configurations\n\nput the following config in your `settings.py` file:\n\n```python\nACCESS_KEY_ID = \"\"\nACCESS_KEY_SECRET = \"\"\n\n# The URL of AliCloud OSS endpoint\n# Refer https://www.alibabacloud.com/help/zh/doc-detail/31837.htm for OSS Region & Endpoint\nEND_POINT = \"\"\nBUCKET_NAME = \"\" # if not exist in aliyun oss platform, it will created automatically\nALIYUN_OSS_CNAME = \"\" # custom domain. optional\nBUCKET_ACL_TYPE = \"private\" # bucket access type. available value: private, public-read, public-read-write\nALIYUN_OSS_HTTPS = False # optional config. determine use https or not. if not declare, this value will be False by default.\n\n# storage media file\nDEFAULT_FILE_STORAGE = 'django_aliyun_oss2.backends.AliyunMediaStorage'\n# storage static file\nSTATICFILES_STORAGE = 'django_aliyun_oss2.backends.AliyunStaticStorage'\n```\n\n## Usage\n\nAll of the static file storage settings are available for the staticfiles storage.\n\n```python\n# The default location for your static files\nSTATIC_URL = '/static/'\n```\n\nRun following command to collect all sub-folder `static` of each app and upload to STATIC_URL:\n\n```bash\n$ python manage.py collectstatic\n```\n\n## License\n\nMIT LICENSE", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sai628/django-aliyun-oss2", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-aliyun-oss2", "package_url": "https://pypi.org/project/django-aliyun-oss2/", "platform": "", "project_url": "https://pypi.org/project/django-aliyun-oss2/", "project_urls": { "Homepage": "https://github.com/sai628/django-aliyun-oss2" }, "release_url": "https://pypi.org/project/django-aliyun-oss2/0.2/", "requires_dist": null, "requires_python": "", "summary": "A simple Django storage backend for aliyun oss2.", "version": "0.2" }, "last_serial": 5659557, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "80739d07dcb0f9f31e44589d730c9138", "sha256": "c45e9c35f5ea211007fde956737b0606a4cba635dd098d0db001c85010cde8ee" }, "downloads": -1, "filename": "django-aliyun-oss2-0.1.tar.gz", "has_sig": false, "md5_digest": "80739d07dcb0f9f31e44589d730c9138", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5362, "upload_time": "2019-01-15T17:20:29", "url": "https://files.pythonhosted.org/packages/23/fb/12619c03fc5e15ec7cf8f8eedc354a537cc2b208b27a452b88e17fd18910/django-aliyun-oss2-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e7a1a58b9cd4b2a5c64e64595bee468e", "sha256": "8f1f5ee3be92f0ea109e022a1a7f70b4e5465c9c0c69077c55fccd862c767739" }, "downloads": -1, "filename": "django-aliyun-oss2-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e7a1a58b9cd4b2a5c64e64595bee468e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5371, "upload_time": "2019-01-25T07:14:43", "url": "https://files.pythonhosted.org/packages/5e/d8/cd6018b89f64d5df12c2717be9e1545e5dbc78c20b7f3cb6055c11af3c6e/django-aliyun-oss2-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "a5f256f8ff5e1b3b9c8497cee87fd7de", "sha256": "15645b734e44cc367f1a1bf14437b0eb8255c03e5843a83afe37d4623345e3a6" }, "downloads": -1, "filename": "django-aliyun-oss2-0.2.tar.gz", "has_sig": false, "md5_digest": "a5f256f8ff5e1b3b9c8497cee87fd7de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5524, "upload_time": "2019-08-10T14:16:08", "url": "https://files.pythonhosted.org/packages/82/b6/440b918626c6551cddb1ad0a53187e6ef58fee96be1253bb9defe28fcb2e/django-aliyun-oss2-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a5f256f8ff5e1b3b9c8497cee87fd7de", "sha256": "15645b734e44cc367f1a1bf14437b0eb8255c03e5843a83afe37d4623345e3a6" }, "downloads": -1, "filename": "django-aliyun-oss2-0.2.tar.gz", "has_sig": false, "md5_digest": "a5f256f8ff5e1b3b9c8497cee87fd7de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5524, "upload_time": "2019-08-10T14:16:08", "url": "https://files.pythonhosted.org/packages/82/b6/440b918626c6551cddb1ad0a53187e6ef58fee96be1253bb9defe28fcb2e/django-aliyun-oss2-0.2.tar.gz" } ] }