{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "Django AliCloud OSS Storage\n=========================\n\n**django-oss-storage** provides a Django AliCloud OSS file storage.\n\n\nFeatures\n========\n\n- Django file storage for AliCloud OSS\n- Django static file storage for AliCloud OSS\n- Works in Python 2 & 3\n\nInstallation\n============\n\n* Install\n\n.. code-block:: bash\n\n $ pip install django-oss-storage\n\n- Add ``'django_oss_storage'`` to your ``INSTALLED_APPS`` setting\n- Set your ``DEFAULT_FILE_STORAGE`` setting to ``\"django_oss_storage.backends.OssMediaStorage\"``\n- Set your ``STATICFILES_STORAGE`` setting to ``\"django_oss_storage.backends.OssStaticStorage\"``\n- Configure your AliCloud OSS settings (Refer below).\n\nUse the following settings for file storage.\n\n.. code-block:: bash\n\n STATICFILES_STORAGE = 'django_oss_storage.backends.OssStaticStorage'\n\n DEFAULT_FILE_STORAGE = 'django_oss_storage.backends.OssMediaStorage'\n\nAuthentication settings\n=======================\n\nUse the following settings to authenticate with AliCloud OSS.\n\n.. code-block:: bash\n\n # AliCloud access key ID\n OSS_ACCESS_KEY_ID = \n\n # AliCloud access key secret\n OSS_ACCESS_KEY_SECRET = \n\nFile storage settings\n=====================\n\nUse the following settings to configure AliCloud OSS file storage.\n\n.. code-block:: bash\n\n # The name of the bucket to store files in\n OSS_BUCKET_NAME = \n\n # The URL of AliCloud OSS endpoint\n # Refer https://www.alibabacloud.com/help/zh/doc-detail/31837.htm for OSS Region & Endpoint\n OSS_ENDPOINT = \n\n # The default location for your files\n MEDIA_URL = '/media/'\n\nStaticfiles storage settings\n============================\n\nAll of the file storage settings are available for the staticfiles storage.\n\n.. code-block:: bash\n\n # The default location for your static files\n STATIC_URL = '/static/'\n\nstaticfiles provides command 'collectstatic'. Run following command to collect all sub-folder 'static' of each app\nand upload to STATIC_URL.\n\n.. code-block:: bash\n\n $ python manage.py collectstatic\n\n\nTesting\n=======\n\nFirst set the required AccessKeyId, AccessKeySecret, endpoint and bucket information for the test through environment variables (**Do not use the bucket for the production environment**).\nTake the Linux system for example:\n\n.. code-block:: bash\n\n $ export OSS_ACCESS_KEY_ID=\n $ export OSS_ACCESS_KEY_SECRET=\n $ export OSS_BUCKET_NAME=\n $ export OSS_ENDPOINT=\n\nSupport and announcements\n=========================\n\nDownloads and bug tracking can be found at the `main project website `_.\n\nLicense\n=======\n\n- `MIT `_.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.aliyun.com/product/oss", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-oss-storage", "package_url": "https://pypi.org/project/django-oss-storage/", "platform": "", "project_url": "https://pypi.org/project/django-oss-storage/", "project_urls": { "Homepage": "https://www.aliyun.com/product/oss" }, "release_url": "https://pypi.org/project/django-oss-storage/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "Django Aliyun OSS (Object Storage Service) storage", "version": "1.1.0" }, "last_serial": 3500199, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "2f25c1cf52ad67fadc2f4ce849d897b2", "sha256": "c9f1ef7431254dcb40bfdfe006a53cbaab83d9f046256e6c2240f8e6cf2f0990" }, "downloads": -1, "filename": "django-oss-storage-1.0.0.tar.gz", "has_sig": false, "md5_digest": "2f25c1cf52ad67fadc2f4ce849d897b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8478, "upload_time": "2017-09-01T06:20:31", "url": "https://files.pythonhosted.org/packages/f7/4e/a76fdaeb52ec2e770ca1262eb68343abc0903b290c6ca98c2fe14e230167/django-oss-storage-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "b947252f824d029143cdfcbae44e0701", "sha256": "306093a591743db55fe21c39baff90f3e4c13e0922ff850a951854e9854c5194" }, "downloads": -1, "filename": "django-oss-storage-1.1.0.tar.gz", "has_sig": false, "md5_digest": "b947252f824d029143cdfcbae44e0701", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8923, "upload_time": "2018-01-18T09:34:26", "url": "https://files.pythonhosted.org/packages/af/61/304c4da83e0393f9e0c364f45177ab61798fc3ced88abe1f26f6e0392750/django-oss-storage-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b947252f824d029143cdfcbae44e0701", "sha256": "306093a591743db55fe21c39baff90f3e4c13e0922ff850a951854e9854c5194" }, "downloads": -1, "filename": "django-oss-storage-1.1.0.tar.gz", "has_sig": false, "md5_digest": "b947252f824d029143cdfcbae44e0701", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8923, "upload_time": "2018-01-18T09:34:26", "url": "https://files.pythonhosted.org/packages/af/61/304c4da83e0393f9e0c364f45177ab61798fc3ced88abe1f26f6e0392750/django-oss-storage-1.1.0.tar.gz" } ] }