{ "info": { "author": "Radek Czajka", "author_email": "rczajka@rczajka.pl", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "# django-filestorages\n\nDjango-getstorage is a tiny Python library for dealing with configurable\nDjango storages.\n\nIt allows you to define a dictionary of file storage configurations\nin your `settings` and refer to them by name in your code.\n\nIt should be obsolete once [Django ticket 26029](https://code.djangoproject.com/ticket/26029)\nis resolved.\n\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install django-filestorages.\n\n```bash\npip install django-filestorages\n```\n\n\n## Usage\n\nWherever you need a storage, use the `filestorages.get_storage` function.\n\n```python\nfrom filestorages import get_storage\n\nfile = models.FileField(storage=get_storage('some.configured.storage'))\n```\n\n\nIn your settings, you can define your storages using dotted paths:\n\n```python\nFILE_STORAGES = {\n 'default': {\n 'BACKEND': \"django.core.files.storage.FileSystemStorage\",\n 'OPTIONS': {\n 'location': '/path/to/the/files/',\n 'base_url': '/files/',\n }\n },\n 'some': {\n 'BACKEND': 'other.backend.Storage',\n 'OPTIONS': {\n 'option': 'value',\n },\n },\n 'some.configured': {\n 'OPTIONS': {\n 'second_option': True,\n },\n },\n}\n```\n\nIn this example `get_storage('some.configured.storage')` returns `other.backend.Storage(option='value', second_option=True)`\n\nIf no matching backend is found, `FILE_STORAGES['default']` is used, falling back on \n`DEFAULT_FILE_STORAGE` if not set.\n\n\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n\n\n", "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/rczajka/django-filestorages", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-filestorages", "package_url": "https://pypi.org/project/django-filestorages/", "platform": "", "project_url": "https://pypi.org/project/django-filestorages/", "project_urls": { "Homepage": "https://github.com/rczajka/django-filestorages" }, "release_url": "https://pypi.org/project/django-filestorages/0.1/", "requires_dist": [ "Django" ], "requires_python": "", "summary": "Configurable file storages for Django", "version": "0.1" }, "last_serial": 5928269, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "85e748f3f361aa26a1a9ce6fd3f34dc2", "sha256": "53d1543314438fa91a63538e66fbb2860d547e3f56c0aa1548f34088ee4b0f79" }, "downloads": -1, "filename": "django_filestorages-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "85e748f3f361aa26a1a9ce6fd3f34dc2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3401, "upload_time": "2019-10-04T13:11:06", "url": "https://files.pythonhosted.org/packages/cb/84/ad26f495fee94b8e1a81309d5cd3055bb433e54a994e65f072950cc954d6/django_filestorages-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "72735a7c30be877157903b460378c7b2", "sha256": "0fe6c352d48fd2ce70c76aef6dc33d9ece0e28c2fdc2c100aab762c753e010af" }, "downloads": -1, "filename": "django-filestorages-0.1.tar.gz", "has_sig": false, "md5_digest": "72735a7c30be877157903b460378c7b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2575, "upload_time": "2019-10-04T13:11:09", "url": "https://files.pythonhosted.org/packages/f4/7f/9fdfca1d1f8f796d3585dd87011d22ad3f6a03dc582a08dcc532257fc958/django-filestorages-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "85e748f3f361aa26a1a9ce6fd3f34dc2", "sha256": "53d1543314438fa91a63538e66fbb2860d547e3f56c0aa1548f34088ee4b0f79" }, "downloads": -1, "filename": "django_filestorages-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "85e748f3f361aa26a1a9ce6fd3f34dc2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3401, "upload_time": "2019-10-04T13:11:06", "url": "https://files.pythonhosted.org/packages/cb/84/ad26f495fee94b8e1a81309d5cd3055bb433e54a994e65f072950cc954d6/django_filestorages-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "72735a7c30be877157903b460378c7b2", "sha256": "0fe6c352d48fd2ce70c76aef6dc33d9ece0e28c2fdc2c100aab762c753e010af" }, "downloads": -1, "filename": "django-filestorages-0.1.tar.gz", "has_sig": false, "md5_digest": "72735a7c30be877157903b460378c7b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2575, "upload_time": "2019-10-04T13:11:09", "url": "https://files.pythonhosted.org/packages/f4/7f/9fdfca1d1f8f796d3585dd87011d22ad3f6a03dc582a08dcc532257fc958/django-filestorages-0.1.tar.gz" } ] }