{ "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\n\n\n", "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-fork", "package_url": "https://pypi.org/project/django-dropbox-storage-fork/", "platform": "", "project_url": "https://pypi.org/project/django-dropbox-storage-fork/", "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-fork/0.4.1/", "requires_dist": [ "django (>=1.11)", "dropbox (>=8.0.0)" ], "requires_python": "", "summary": "A Dropbox Storage for your Django apps", "version": "0.4.1" }, "last_serial": 5680624, "releases": { "0.4.1": [ { "comment_text": "", "digests": { "md5": "ef21bfaed4eec9e3d8fa3daed06aa4ab", "sha256": "24629a791cb41ebd9d045e222324feebf020793d353ba7db8f629f99cd4db518" }, "downloads": -1, "filename": "django_dropbox_storage_fork-0.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ef21bfaed4eec9e3d8fa3daed06aa4ab", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9089, "upload_time": "2019-08-15T05:07:46", "url": "https://files.pythonhosted.org/packages/46/60/2bcd0aedcf7ca038fbff8153e334afd6aee2820a7c7e071c21b79203f58c/django_dropbox_storage_fork-0.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1c792bae8be64ca2f400bf8b0e69f06d", "sha256": "e11771f94b73d6bccedb2ed583c55c21822e0449a81d0697a84d236fca76e23d" }, "downloads": -1, "filename": "django-dropbox-storage-fork-0.4.1.tar.gz", "has_sig": false, "md5_digest": "1c792bae8be64ca2f400bf8b0e69f06d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6326, "upload_time": "2019-08-15T05:07:49", "url": "https://files.pythonhosted.org/packages/a7/bf/f6a6f5f18c6e87a686a8fbfad018343c62bbaed875a0ffddef68010301aa/django-dropbox-storage-fork-0.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ef21bfaed4eec9e3d8fa3daed06aa4ab", "sha256": "24629a791cb41ebd9d045e222324feebf020793d353ba7db8f629f99cd4db518" }, "downloads": -1, "filename": "django_dropbox_storage_fork-0.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ef21bfaed4eec9e3d8fa3daed06aa4ab", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9089, "upload_time": "2019-08-15T05:07:46", "url": "https://files.pythonhosted.org/packages/46/60/2bcd0aedcf7ca038fbff8153e334afd6aee2820a7c7e071c21b79203f58c/django_dropbox_storage_fork-0.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1c792bae8be64ca2f400bf8b0e69f06d", "sha256": "e11771f94b73d6bccedb2ed583c55c21822e0449a81d0697a84d236fca76e23d" }, "downloads": -1, "filename": "django-dropbox-storage-fork-0.4.1.tar.gz", "has_sig": false, "md5_digest": "1c792bae8be64ca2f400bf8b0e69f06d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6326, "upload_time": "2019-08-15T05:07:49", "url": "https://files.pythonhosted.org/packages/a7/bf/f6a6f5f18c6e87a686a8fbfad018343c62bbaed875a0ffddef68010301aa/django-dropbox-storage-fork-0.4.1.tar.gz" } ] }