{ "info": { "author": "bresai", "author_email": "bresai@live.cn", "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 :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "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 Storage\n\n\n### Django storage for [\u963f\u91cc\u4e91 OSS2](https://www.aliyun.com/product/oss/?spm=5176.383338.201.42.WB7sGd)\n\n## Install\n\n pip install django-aliyun-oss2-storage\n\n## Configurations\n\nDjango Aliyun OSS2 Storage \u9700\u8981\u4ee5\u4e0b\u51e0\u4e2a\u914d\u7f6e\u624d\u80fd\u6b63\u5e38\u5de5\u4f5c\u3002\u8fd9\u4e9b\u914d\u7f6e\u901a\u8fc7\u53ef\u4ee5\u73af\u5883\u53d8\u91cf\u6216 settings.py \u6765\u8bbe\u7f6e\u3002\u73af\u5883\u53d8\u91cf\u7684\u4f18\u5148\u7ea7\u8981\u9ad8\u4e8e settings.py \u3002`BUCKET_NAME`\u662fBucket\u7684\u540d\u5b57\uff0c\u5982\u679c\u8be5bucket\u4e0d\u5b58\u5728\uff0c\u7a0b\u5e8f\u4f1a\u81ea\u52a8\u521b\u5efa\u3002`BUCKET_ACL_TYPE`\u7528\u4e8e\u8bbe\u7f6eBucket\u7684\u6743\u9650\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u4e3a`private`, `public-read`\u548c `public-read-write`\u3002\n\n```python\nACCESS_KEY_ID = \"40ZhE1HyuWdllpMh\"\nACCESS_KEY_SECRET = \"KbxtlKSvKyuyuymTiQvrxhsYFMguXy\"\nEND_POINT = \"oss-us-west-1.aliyuncs.com\"\nBUCKET_NAME = \"XXXX\"\nBUCKET_ACL_TYPE = \"private\" # private, public-read, public-read-write\n```\n\n## Usage\n\n\u5728 settings.py \u91cc\u8bbe\u7f6e `DEFAULT_FILE_STORAGE` :\n\n```python\n# mediafile\u5c06\u81ea\u52a8\u4e0a\u4f20\nDEFAULT_FILE_STORAGE = 'aliyun_oss2_storage.backends.AliyunMediaStorage'\n# staticfile\u5c06\u81ea\u52a8\u4e0a\u4f20\nSTATICFILES_STORAGE = 'aliyun_oss2_storage.backends.AliyunStaticStorage'\n```\n\n## License\n\n\u57fa\u4e8eMIT\u8bb8\u53ef\u8bc1\u53d1\u5e03", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/xiewenya/", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "django-aliyun-oss2-storage", "package_url": "https://pypi.org/project/django-aliyun-oss2-storage/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-aliyun-oss2-storage/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/xiewenya/" }, "release_url": "https://pypi.org/project/django-aliyun-oss2-storage/0.1.5/", "requires_dist": null, "requires_python": null, "summary": "A simple Django storage backend for aliyun oss2.", "version": "0.1.5" }, "last_serial": 3240956, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "b00c1b1eccbc18fdcc5fcbf5d48406d8", "sha256": "2851d78c8312eb5a4127a5a514120815ab8210015f7e2fc928329d0953178b50" }, "downloads": -1, "filename": "django-aliyun-oss2-storage-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b00c1b1eccbc18fdcc5fcbf5d48406d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5026, "upload_time": "2016-03-09T08:03:38", "url": "https://files.pythonhosted.org/packages/02/7d/a245e040d3c45278f92984ac6ea09b755d2a5c7e4deda528bab45d675236/django-aliyun-oss2-storage-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "a0657b4c3efccdf7b9cb7d493ddb7d7a", "sha256": "2358783eff363190cf7c768f7b91809724c3df0e95464ecee489979ffc0d6223" }, "downloads": -1, "filename": "django-aliyun-oss2-storage-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a0657b4c3efccdf7b9cb7d493ddb7d7a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5470, "upload_time": "2017-10-11T01:38:19", "url": "https://files.pythonhosted.org/packages/b2/14/1ee583c2d1264e57cbacac753d511c8f1e96fa72627874b15afc62a490f6/django-aliyun-oss2-storage-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "25dcaae52d712414e58d70fdae3c8a5b", "sha256": "9a94e1d32cdb4971db9e851d41b709eef8e65a0c876e70d66d4e49c0bb96faef" }, "downloads": -1, "filename": "django-aliyun-oss2-storage-0.1.3.tar.gz", "has_sig": false, "md5_digest": "25dcaae52d712414e58d70fdae3c8a5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5322, "upload_time": "2017-01-16T02:32:29", "url": "https://files.pythonhosted.org/packages/38/14/b6e5a1c6e0b3a5468094e9a0250359364388b071c6a72b58a93155164c6c/django-aliyun-oss2-storage-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "03527fbc7d371dab4c3a3a1e97a7fa95", "sha256": "e9cc695fa45aabfbe418d84ca94898cf817432890bf6072bcef7fb7b5f79d605" }, "downloads": -1, "filename": "django-aliyun-oss2-storage-0.1.4.tar.gz", "has_sig": false, "md5_digest": "03527fbc7d371dab4c3a3a1e97a7fa95", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5328, "upload_time": "2017-02-03T07:42:11", "url": "https://files.pythonhosted.org/packages/1d/f0/438a0ac02c4b3ddca88d7b3932d02d414af900fa01f1d9e34dbc2e83ad69/django-aliyun-oss2-storage-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "08339397b4c481a0a0c78156a63c9f9b", "sha256": "71f6451a9f8d3ebb091335cc713ff4b5294553f1669ffce2d0cea8ca72a3ae90" }, "downloads": -1, "filename": "django_aliyun_oss2_storage-0.1.5-py2.7.egg", "has_sig": false, "md5_digest": "08339397b4c481a0a0c78156a63c9f9b", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 9093, "upload_time": "2017-05-17T03:44:58", "url": "https://files.pythonhosted.org/packages/61/9d/206a9d36e3fe96c7a626a9daabf9040f5c27dbb92895fe4deabfc4fea59b/django_aliyun_oss2_storage-0.1.5-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "47021d8dab7659803149ae8d9f728936", "sha256": "8de84c1ee2dea1e50937155c5f47834e44676a8b1d2e61c645e6ad255ca49d79" }, "downloads": -1, "filename": "django-aliyun-oss2-storage-0.1.5.tar.gz", "has_sig": false, "md5_digest": "47021d8dab7659803149ae8d9f728936", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5419, "upload_time": "2017-05-17T03:44:53", "url": "https://files.pythonhosted.org/packages/cd/59/e22479bac1c97ba9af8b7ce6e3723cd4eea420a8715aa58ac49d631b9604/django-aliyun-oss2-storage-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "08339397b4c481a0a0c78156a63c9f9b", "sha256": "71f6451a9f8d3ebb091335cc713ff4b5294553f1669ffce2d0cea8ca72a3ae90" }, "downloads": -1, "filename": "django_aliyun_oss2_storage-0.1.5-py2.7.egg", "has_sig": false, "md5_digest": "08339397b4c481a0a0c78156a63c9f9b", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 9093, "upload_time": "2017-05-17T03:44:58", "url": "https://files.pythonhosted.org/packages/61/9d/206a9d36e3fe96c7a626a9daabf9040f5c27dbb92895fe4deabfc4fea59b/django_aliyun_oss2_storage-0.1.5-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "47021d8dab7659803149ae8d9f728936", "sha256": "8de84c1ee2dea1e50937155c5f47834e44676a8b1d2e61c645e6ad255ca49d79" }, "downloads": -1, "filename": "django-aliyun-oss2-storage-0.1.5.tar.gz", "has_sig": false, "md5_digest": "47021d8dab7659803149ae8d9f728936", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5419, "upload_time": "2017-05-17T03:44:53", "url": "https://files.pythonhosted.org/packages/cd/59/e22479bac1c97ba9af8b7ce6e3723cd4eea420a8715aa58ac49d631b9604/django-aliyun-oss2-storage-0.1.5.tar.gz" } ] }