{ "info": { "author": "Shinneider Libanio da Silva", "author_email": "shinneider-libanio@hotmail.com", "bugtrack_url": null, "classifiers": [], "description": "Django Media Placeholder\n=========================\n\nThis project override django `static media` and `storage`(optional), for process every media request, if media not present locally, and try to obtain in another location\n\nIts great for dev, homolog and QA ambients because no need to copy production media every time.\n\nInstallation\n------------\n\n1. Install the package with:\n\n `pip install django-media-placeholder`\n\n2. Uninstall the package with:\n\n `pip uninstall django-media-placeholder`\n\n3. Add and URL to your URLCONF:\n ```\n from django_media_placeholder.static import static\n urlpatterns = [\n ...\n ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)\n ```\n\n4. 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 ALTERNATIVE_MEDIA_URL = 'Url to Get image not present in locally'\n ```\n\n5. If use thumbanails, set `DEFAULT_FILE_STORAGE` to new storage,\n(thumbnails's libs generate and get image directly in disk, no request to media path):\n ```\n DEFAULT_FILE_STORAGE = 'django_media_placeholder.custom_storage.OverwritingStorage'\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/shinneider/django_media_placeholder", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-media-placeholder", "package_url": "https://pypi.org/project/django-media-placeholder/", "platform": "", "project_url": "https://pypi.org/project/django-media-placeholder/", "project_urls": { "Homepage": "https://github.com/shinneider/django_media_placeholder" }, "release_url": "https://pypi.org/project/django-media-placeholder/0.1/", "requires_dist": null, "requires_python": ">=3.3", "summary": "Process every media request, if media not present locally, and try to obtain in another location", "version": "0.1" }, "last_serial": 5417979, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6471ab76ea795fd07ffd66023eec6c3c", "sha256": "60f975601cb6a7e6985e252efed6ce9336a15978ae765d39c46d5362f4c7dc53" }, "downloads": -1, "filename": "django_media_placeholder-0.1.tar.gz", "has_sig": false, "md5_digest": "6471ab76ea795fd07ffd66023eec6c3c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.3", "size": 3347, "upload_time": "2019-06-19T01:17:35", "url": "https://files.pythonhosted.org/packages/26/8e/3b4a1438ca02f122f2726c6c5b741ed0e69d15bc4ed99afe7290ac3f4350/django_media_placeholder-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6471ab76ea795fd07ffd66023eec6c3c", "sha256": "60f975601cb6a7e6985e252efed6ce9336a15978ae765d39c46d5362f4c7dc53" }, "downloads": -1, "filename": "django_media_placeholder-0.1.tar.gz", "has_sig": false, "md5_digest": "6471ab76ea795fd07ffd66023eec6c3c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.3", "size": 3347, "upload_time": "2019-06-19T01:17:35", "url": "https://files.pythonhosted.org/packages/26/8e/3b4a1438ca02f122f2726c6c5b741ed0e69d15bc4ed99afe7290ac3f4350/django_media_placeholder-0.1.tar.gz" } ] }