{ "info": { "author": "Emanuele Bertoldi", "author_email": "emanuele.bertoldi@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# django-dropbox-storage\n\n> A Dropbox Storage for your Django apps\n\n## What\n\n`django-dropbox-storage` allows Django apps to use Dropbox as a storage backend for file uploading.\n\n## Installing\n\nFirst things first:\n\n```\n$ pip install django-dropbox-storage\n```\n\nThen open the `settings.py` of your project and include it to your `INSTALLED_APPS`:\n\n```\nINSTALLED_APPS = (\n ...\n 'django_dropbox_storage',\n ...\n)\n```\n\nIf you want to use `django_dropbox_storage` as default storage for all file uploads, you need to adjust `DEFAULT_FILE_STORAGE` too:\n\n```\nDEFAULT_FILE_STORAGE = 'django_dropbox_storage.storage.DropboxStorage'\n```\n\nIf you just want to use it on a single model field, you can simply import it:\n\n```\nfrom django_dropbox_storage.storage import DropboxStorage\n\nDROPBOX_STORAGE = DropboxStorage()\n\nphoto = models.ImageField(upload_to='photos', storage=DROPBOX_STORAGE ...)\n```\n\nIn order to let it work properly, you must set the next settings:\n\n```\nDROPBOX_ACCESS_TOKEN = 'xxx'\n```\n\nIf you don't have `DROPBOX_ACCESS_TOKEN` you can create one after creating a Dropbox app at [Dropbox for Developers](https://www.dropbox.com/developers).\nIf you have your Dropbox `App key` and `App secret`, you can set `DROPBOX_CONSUMER_KEY` and `DROPBOX_CONSUMER_SECRET` settings in `settings.py`, then run:\n\n```\n$ python manage.py get_dropbox_token [--settings=test_settings]\n```\n\nAnd follow up on screen instructions, finally set the `DROPBOX_ACCESS_TOKEN_SECRET` in your `settings.py` module.\n\nYou can also set default root folder setting the value of `DROPBOX_ROOT_FOLDER`:\n\n```\nDROPBOX_ROOT_FOLDER = '/Public'\n```\n\nBy default it's set to `'/'` (root folder).\n\n## Tests\n\nTests are written following Django's best practices.\n\nIn order to run them, you need to set `DROPBOX_ACCESS_TOKEN` properly.\n\n**NOTE:** if you're testing this package as _stand-alone_, you can set the access token in a `local_settings.py` module put in the root folder.\n\nTo launch the test suite:\n\n```\n$ python manage.py test [--settings=test_settings]\n```\n\nTo check the unit tests coverage you can:\n\n```\n$ pip install coverage\n$ coverage run manage.py test [--settings=test_settings]\n$ coverage report -m\n```\n\n## Contributing\n\nWhen contributing, please follow these steps:\n\n* Clone the repo and make your changes.\n* Make sure your code has test cases written against it.\n* Make sure all the tests pass.\n* Lint your code with Flake8.\n* Add your name to the list of contributers.\n* Submit a Pull Request.\n\n## Authors\n\n* **Emanuele Bertoldi**\n\nThis project is based on previous work by:\n\n* **Andres Torres** [django-dropbox]\n* **Maximiliano Cecilia** [django-dropbox]\n* **Josh Schneier** [django-storages]\n* **Danielle Madeley** [django-storages]\n\nKudos and many thanks to all of them!\n\n## License\n\nCopyright (c) 2018 Emanuele Bertoldi\n\n[MIT License](http://en.wikipedia.org/wiki/MIT_License)\n\n[django-dropbox]: https://github.com/andres-torres-marroquin/django-dropbox\n[django-storages]: https://github.com/jschneier/django-storages", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/zuck/django-dropbox-storage/archive/0.4.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zuck/django-dropbox-storage", "keywords": "django storage dropbox", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-dropbox-storage", "package_url": "https://pypi.org/project/django-dropbox-storage/", "platform": "", "project_url": "https://pypi.org/project/django-dropbox-storage/", "project_urls": { "Download": "https://github.com/zuck/django-dropbox-storage/archive/0.4.1.tar.gz", "Homepage": "https://github.com/zuck/django-dropbox-storage" }, "release_url": "https://pypi.org/project/django-dropbox-storage/0.4.1/", "requires_dist": null, "requires_python": "", "summary": "A Dropbox Storage for your Django apps", "version": "0.4.1" }, "last_serial": 3776635, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "25aad6a0b2834a1a4a4e9e534c7306d8", "sha256": "a45e7578140e4d0a3e676c1304f3771f871dd4dadeaf952e9e13e125b3767418" }, "downloads": -1, "filename": "django-dropbox-storage-0.2.0.tar.gz", "has_sig": false, "md5_digest": "25aad6a0b2834a1a4a4e9e534c7306d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5899, "upload_time": "2018-04-12T15:26:11", "url": "https://files.pythonhosted.org/packages/18/ca/8f5f39ce9b2303b1b283c0d959911c3f54a3bcfa123b63b9766db351f0db/django-dropbox-storage-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "92184e162ced5da419ec5827470b7017", "sha256": "7253b26b072a848e8550b46bb68faa02c9ee3c557f7a503fc046ce17852e0e19" }, "downloads": -1, "filename": "django-dropbox-storage-0.3.0.tar.gz", "has_sig": false, "md5_digest": "92184e162ced5da419ec5827470b7017", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6204, "upload_time": "2018-04-12T19:41:09", "url": "https://files.pythonhosted.org/packages/7d/2c/5302a63e21e8dcf69858bcdbd60deb74f81ad366e9833573153bf7f6f318/django-dropbox-storage-0.3.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "406c0309a84cd2fe5ceef9a8ac3a0d82", "sha256": "950e6b25aad09df982dc0962bf61f6e55f0860477da9e5f4d3bc0f8ec79050ce" }, "downloads": -1, "filename": "django-dropbox-storage-0.4.1.tar.gz", "has_sig": false, "md5_digest": "406c0309a84cd2fe5ceef9a8ac3a0d82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6362, "upload_time": "2018-04-18T10:55:48", "url": "https://files.pythonhosted.org/packages/20/05/40b0f04b00021e679f279eba806282833946b233531bca6b2aeea1f4903f/django-dropbox-storage-0.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "406c0309a84cd2fe5ceef9a8ac3a0d82", "sha256": "950e6b25aad09df982dc0962bf61f6e55f0860477da9e5f4d3bc0f8ec79050ce" }, "downloads": -1, "filename": "django-dropbox-storage-0.4.1.tar.gz", "has_sig": false, "md5_digest": "406c0309a84cd2fe5ceef9a8ac3a0d82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6362, "upload_time": "2018-04-18T10:55:48", "url": "https://files.pythonhosted.org/packages/20/05/40b0f04b00021e679f279eba806282833946b233531bca6b2aeea1f4903f/django-dropbox-storage-0.4.1.tar.gz" } ] }