{ "info": { "author": "Simone Cittadini", "author_email": "simone@sig-c.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Environment :: Web Environment", "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.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# Django Dropimages #\nUses [Dropzone.js](http://www.dropzonejs.com/) and [django-braces](https://github.com/brack3t/django-braces) to simplify the upload of multiple images into a collection object.\n\n\n## Installation\nInstall from PyPI with `pip`:\n\n`pip install --pre django-dropimages`\n\n\n## Documentation\nAdd 'django_dropimages' to the list of installed apps.\n\nAdd `url(r'^__dropimages__/', include(django_dropimages.urls)),` to your urls.py\n\nAdd `{% load drop_images %}` at the start of the template, `{% drop_images_js %}` where the javascripts are loaded, \nand `{% drop_images %}` where you want the dropzone to show.\n\nEach image file dropped into the dropzone will create a `DropimagesImage` model, contained in a `DropimagesGallery` \nunique for every dropzone instance.\nYou can customize in order to specify which model will hold the image instead of `DropimagesImage`, \nor completely override the called urls and use your own logic.\n\n## Configuration\nProvides a setting dictionary that you can add in your project\u2019s settings module to customize its behavior.\n\n### DROP_IMAGES_CONFIG\n\n#### keys:\n\n+ `SHOW_ID_ON_COMPLETE`\n\n Specify a DOM node id which will be set to 'display: block' once all the files are processed, useful to integrate\n the dropzone into another modelform or wizard (see the examples).\n \n+ `GALLERY_FIELD_ID`\n\n Specify the id of a select field to be filled with the `DropimagesGallery` Django instance pk once the upload is \n complete, useful to integrate the dropzone into another modelform or wizard (see the examples).\n\n\n+ `UPLOAD_URL`\n\n Overrides the url where file data is POSTed, so you can use your own view to save the data.\n An option `?gallery_id` is automatically appended to the url, which is the same for every file uploaded but unique \n among different dropzone instances.\n\n+ `DELETE_URL`\n\n Overrides the url to ask for immediate image removal from the dropzone, so you can use your own view.\n Two options are automatically appended to the url; `?gallery_id` which is the same for every file into the dropzone \n but unique among different dropzone instances, and `original_filename` which should be saved into `DropimagesImage`\n or whichever model you use to save images in order to identify them.\n \n+ `DROPIMAGE_MODEL`\n\n Use the specified model ( must be a `appname.ModelName` string ) to save the uploaded images.\n Model must have a ForeignKey to `dropimages.DropImagesGallery` called `dropimages_gallery` and a \n `dropimages_original_filename` `CharField`.\n\n+ `DROPIMAGE_FIELD`\n\n Save the image into the specified field name of the `DROPIMAGE_MODEL` model.\n\n\n+ `DICT_DEFAULT_MESSAGE`\n\n The message that gets displayed before any files are dropped.\n \n\n## Example\nTo navigate the example page (assuming you use [virtualenvwrapper](https://pypi.python.org/pypi/virtualenvwrapper)) :\n\n mkvirtualenv django-dropimages\n pip install example/requirements.txt\n add2virtualenv .\n python example/manage.py migrate\n python example/manage.py runserver", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/pypi/django-dropimages", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sittizen/django_dropimages", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-dropimages", "package_url": "https://pypi.org/project/django-dropimages/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-dropimages/", "project_urls": { "Download": "https://pypi.python.org/pypi/django-dropimages", "Homepage": "https://github.com/sittizen/django_dropimages" }, "release_url": "https://pypi.org/project/django-dropimages/0.1.6/", "requires_dist": null, "requires_python": null, "summary": "Uses Dropzone.js and django-braces to simplify the upload of multiple images into a collection object.", "version": "0.1.6" }, "last_serial": 1941767, "releases": { "0.1": [], "0.1.1": [ { "comment_text": "", "digests": { "md5": "09f64cd5a99f424f122275506e5c6d7e", "sha256": "437ff07bb989a531d7d7e2c569f0f86af97c7da0fae88784e7b835a332f5c2dd" }, "downloads": -1, "filename": "django-dropimages-0.1.1.tar.gz", "has_sig": false, "md5_digest": "09f64cd5a99f424f122275506e5c6d7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22024, "upload_time": "2016-01-05T14:05:40", "url": "https://files.pythonhosted.org/packages/e6/84/6977b22540c1aa0929d63020c6ddf22b6a51acb6173e47c6bcb1a57dd08e/django-dropimages-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "50be6f0ebbf4a1d8b24990eba2bbe7b0", "sha256": "987c956bc4b81b315aa12c5bc17408843a22463e5838599e0a16c581ab4b5ed4" }, "downloads": -1, "filename": "django-dropimages-0.1.2.tar.gz", "has_sig": false, "md5_digest": "50be6f0ebbf4a1d8b24990eba2bbe7b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22845, "upload_time": "2016-01-05T17:09:27", "url": "https://files.pythonhosted.org/packages/bb/2b/c130bc0a4bc277813ed67afa618f300566bed9404e56ded063b6da749d9b/django-dropimages-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c5d4fed5833fe788955b6902ecd4a9cd", "sha256": "c7984ddfdff396096ff32aa26ef6302f85706e1cf79375dbc557e87836e4483b" }, "downloads": -1, "filename": "django-dropimages-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c5d4fed5833fe788955b6902ecd4a9cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24013, "upload_time": "2016-01-08T15:11:32", "url": "https://files.pythonhosted.org/packages/93/a7/4974f0414d221454e9c3c702fefcf2fcfdaf04edd91bdfca004260f36561/django-dropimages-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "34a3cbd1efe672cd801098aa65ed1f8a", "sha256": "d4444342ecc44a23864e0fc02a474a6ce48292a956e8edef9e84238ccbd36c12" }, "downloads": -1, "filename": "django-dropimages-0.1.4.tar.gz", "has_sig": false, "md5_digest": "34a3cbd1efe672cd801098aa65ed1f8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23303, "upload_time": "2016-01-11T15:14:37", "url": "https://files.pythonhosted.org/packages/5c/bd/9d1d47685b0b4ab3597eebd25525560d9c1bc399b81ee59acf3e23391502/django-dropimages-0.1.4.tar.gz" } ], "0.1.4b0": [ { "comment_text": "", "digests": { "md5": "aa3516ac2202fc45fc810026c5d64a87", "sha256": "30aba19eb43e8275eb153ec2382179303fca9f6fdc26e54490029a809b72ab38" }, "downloads": -1, "filename": "django-dropimages-0.1.4b0.tar.gz", "has_sig": false, "md5_digest": "aa3516ac2202fc45fc810026c5d64a87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23307, "upload_time": "2016-01-11T15:17:10", "url": "https://files.pythonhosted.org/packages/b3/1c/b8a0255c94f8762ad762a6077fe6515e9273a79037983629446d3f42f6e3/django-dropimages-0.1.4b0.tar.gz" } ], "0.1.4rc0": [ { "comment_text": "", "digests": { "md5": "039f90b144e37a2d3dde183c7279e8f2", "sha256": "884be9d28a8e82919b8571e3be259bc4a4a864966cd4740722a7e310a65891d0" }, "downloads": -1, "filename": "django-dropimages-0.1.4rc0.tar.gz", "has_sig": false, "md5_digest": "039f90b144e37a2d3dde183c7279e8f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23535, "upload_time": "2016-01-11T15:18:57", "url": "https://files.pythonhosted.org/packages/d3/1b/5c2ad070b8a5b58454c451537c784d789fa623abdeff2de65f82aa8422ba/django-dropimages-0.1.4rc0.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "47fe81c4e67b1b2fdc4aed6b3324942b", "sha256": "f803242f156b14cdc470e20ab3a0c38a03e022fd4fcc7164a0bef570626a1a11" }, "downloads": -1, "filename": "django-dropimages-0.1.5.tar.gz", "has_sig": false, "md5_digest": "47fe81c4e67b1b2fdc4aed6b3324942b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23514, "upload_time": "2016-02-01T16:25:45", "url": "https://files.pythonhosted.org/packages/67/58/c9d5c5987c764a0a0a8ec5d829b9e26f1a936525eec5aa5fc3998582d4c1/django-dropimages-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "054c083f1aa8abf8c1e99a9a93f10115", "sha256": "390c3aeddfed37ff9e75e524cead0c3a09a356d645f8bc2a3407253d965a5a45" }, "downloads": -1, "filename": "django-dropimages-0.1.6.tar.gz", "has_sig": false, "md5_digest": "054c083f1aa8abf8c1e99a9a93f10115", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23554, "upload_time": "2016-02-05T16:03:31", "url": "https://files.pythonhosted.org/packages/0a/c2/ec83df28978404bebe0721f671031281a28431d83a2d15a7e6875a153a1d/django-dropimages-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "054c083f1aa8abf8c1e99a9a93f10115", "sha256": "390c3aeddfed37ff9e75e524cead0c3a09a356d645f8bc2a3407253d965a5a45" }, "downloads": -1, "filename": "django-dropimages-0.1.6.tar.gz", "has_sig": false, "md5_digest": "054c083f1aa8abf8c1e99a9a93f10115", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23554, "upload_time": "2016-02-05T16:03:31", "url": "https://files.pythonhosted.org/packages/0a/c2/ec83df28978404bebe0721f671031281a28431d83a2d15a7e6875a153a1d/django-dropimages-0.1.6.tar.gz" } ] }