{ "info": { "author": "Joao Vitor Gomes [at] The Goodfellas", "author_email": "joao.gomes@thegoodfellas.com.br", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "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", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Django Images Placeholder\n=========================\n\nAutomatic generates images with the right dimensions when\nit's missing from the local media storage using metadata of\na common database to generate a image or fetching from an\nalternative MEDIA_URL.\n\nInstallation\n------------\n\n1. Install the package with:\n\n `pip install django-images-placeholder`\n\n2. Uninstall the package with:\n\n `pip uninstall django-images-placeholder`\n\n3. Add \"django_images_placeholder\" to your INSTALLED_APPS setting like this::\n```\n INSTALLED_APPS = [\n ...\n 'django_images_placeholder',\n ]\n```\n\n4. Add and URL to your URLCONF:\n```\n ...\n # This is NOT meant to be used in production environment.\n if settings.DEBUG:\n from django_images_placeholder.views import serve_image_placeholder\n urlpatterns = [\n url(r'^media/', serve_image_placeholder, name='images_placeholder'),\n ] + urlpatterns\n```\n\n5. On `settings.py`, set `MEDIA_URL` to point to it\n```\n ...\n STATIC_URL = '/static/'\n MEDIA_URL = '/media/'\n MEDIA_ROOT = os.path.join(DATA_DIR, 'media')\n STATIC_ROOT = os.path.join(DATA_DIR, 'static')\n DEFAULT_FILE_STORAGE = 'django_images_placeholder.custom_storage.OverwritingStorage'\n STATICFILES_LOCATION = STATIC_URL\n MEDIAFILES_LOCATION = MEDIA_URL\n```\n\n6. Optionally, set `ALTERNATIVE_MEDIA_URL` to point to a production MEDIA_URL,\nso with the view fail to provide an image by openning it locally or trying\nto generating it by original image reference' metadata, it you ultimatelly\ntry to fetch `ALTERNATIVE_MEDIA_URL` and cache it:\n\n `ALTERNATIVE_MEDIA_URL = 'https://mybucket.s3.amazonaws.com/media/'`\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/3mwdigital/django-images-placeholder", "keywords": "", "license": "BSD 2", "maintainer": "", "maintainer_email": "", "name": "django-images-placeholder", "package_url": "https://pypi.org/project/django-images-placeholder/", "platform": "", "project_url": "https://pypi.org/project/django-images-placeholder/", "project_urls": { "Homepage": "https://bitbucket.org/3mwdigital/django-images-placeholder" }, "release_url": "https://pypi.org/project/django-images-placeholder/0.0.5/", "requires_dist": null, "requires_python": "", "summary": "Automatic generates images with the right dimensions whenit's missing from the local media storage based on a commondatabase or remote MEDIA_URL.", "version": "0.0.5" }, "last_serial": 3666633, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a6547534c085cad233fabb09429471f4", "sha256": "77918dfe0b9a93edd7f8cad2f8568d2fab0f5081acc7f65dc5a6d3d10dc0b0d4" }, "downloads": -1, "filename": "django-images-placeholder-0.0.1.tar.gz", "has_sig": false, "md5_digest": "a6547534c085cad233fabb09429471f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4442, "upload_time": "2018-03-06T15:04:53", "url": "https://files.pythonhosted.org/packages/1f/b6/91d7b12ec1d19256974a46bbac465ff1e1965556b16127370bfb44904a63/django-images-placeholder-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "09bc1752c77f3bb05334260e807b9545", "sha256": "a882384bb2f471b5244cd4323d5f86838ef45a2be24092cb9bec07398a2678fc" }, "downloads": -1, "filename": "django-images-placeholder-0.0.2.tar.gz", "has_sig": false, "md5_digest": "09bc1752c77f3bb05334260e807b9545", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4419, "upload_time": "2018-03-06T22:11:47", "url": "https://files.pythonhosted.org/packages/fe/5e/299b0e3729a7ee36c7c9946d7b4139f3e1c161341d0df65a48e076f779dc/django-images-placeholder-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "63ca9902f6d268950b07706ac323e096", "sha256": "952358fe54a096e38ce8d5894c852dc93a8d7d002416eaa23a139a2b6070e748" }, "downloads": -1, "filename": "django-images-placeholder-0.0.3.tar.gz", "has_sig": false, "md5_digest": "63ca9902f6d268950b07706ac323e096", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4407, "upload_time": "2018-03-13T13:32:54", "url": "https://files.pythonhosted.org/packages/3d/f2/6e6cdcb8224985abbd9bd43593ac118392068a185cca8b59b923a093e7a9/django-images-placeholder-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "25493b2f8c560c76564c37e0f4959667", "sha256": "72f35e2683ecc57d7201add0eb948484d8b61be55c332784e20d57d9bccb0bde" }, "downloads": -1, "filename": "django-images-placeholder-0.0.4.tar.gz", "has_sig": false, "md5_digest": "25493b2f8c560c76564c37e0f4959667", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4630, "upload_time": "2018-03-13T15:53:25", "url": "https://files.pythonhosted.org/packages/25/3d/c54133f857b5d01d436a7327bd94b9075097e41ece4edf8a18da8a1a0a8b/django-images-placeholder-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "17dc9d934452a2ade3857c010018b062", "sha256": "6d3e39c763fee1fd0d2ad94e7aaca563f286f294c041bad703e50cc62ea32263" }, "downloads": -1, "filename": "django-images-placeholder-0.0.5.tar.gz", "has_sig": false, "md5_digest": "17dc9d934452a2ade3857c010018b062", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4669, "upload_time": "2018-03-13T20:24:45", "url": "https://files.pythonhosted.org/packages/4b/d1/3c73ed4e6942b708727cc9616716cc2a638c654be82a3b4655476a42ee39/django-images-placeholder-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "17dc9d934452a2ade3857c010018b062", "sha256": "6d3e39c763fee1fd0d2ad94e7aaca563f286f294c041bad703e50cc62ea32263" }, "downloads": -1, "filename": "django-images-placeholder-0.0.5.tar.gz", "has_sig": false, "md5_digest": "17dc9d934452a2ade3857c010018b062", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4669, "upload_time": "2018-03-13T20:24:45", "url": "https://files.pythonhosted.org/packages/4b/d1/3c73ed4e6942b708727cc9616716cc2a638c654be82a3b4655476a42ee39/django-images-placeholder-0.0.5.tar.gz" } ] }