{ "info": { "author": "Matthew Dapena-Tretter", "author_email": "m@tthewwithanm.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "======================\nDjango-Galleries\n======================\n\nA set of utilities for creating gallery models and admin classes.\n\n\n------------------------------\nExample:\n------------------------------\n\n\nmodels.py\n=========\n\nDefine models for all of the types you want to put in your gallery, then create\na ``Gallery`` subclass that specifies which models to allow for its members.\n\n.. attention::\n\n In older versions, we recommended that you extend django-gallery's included\n ``ImageModel`` or ``EmbedModel`` classes if your gallery contained those\n types. Those models are now deprecated. Just define your own!\n\n.. code:: python\n\n from galleries.models import Gallery\n from imagekit.models import ImageSpec\n from imagekit.processors import Crop\n\n\n class YouTubeVideo(models.Model):\n title = models.CharField(max_length=50)\n embed_code = models.TextField()\n thumbnail = models.ProcessedImageField([Crop(60, 60)],\n upload_to='gallery_posters')\n\n class Photo(models.Model)\n title = models.CharField(max_length=50)\n description = models.CharField(max_length=255, blank=True)\n original_image = models.ImageField(upload_to='galleries')\n thumbnail = models.ImageSpec([Crop(60, 60)], image_field='original_image')\n\n\n class ApartmentGallery(Gallery):\n\n class GalleryMeta:\n member_models = [Photo, YouTubeVideo]\n\nThe gallery class will automatically create a membership (through) model, which\nwill be accessible at ``ApartmentGallery.Membership``.\n\n\nadmin.py\n========\n\n.. code:: python\n\n from .models import ApartmentGallery\n from galleries.admin import register_gallery_admin\n\n register_gallery_admin(ApartmentGallery)\n\n\nsettings.py\n===========\n\n.. code:: python\n\n INSTALLED_APPS = (\n 'imagekit',\n ...\n )\n\nThis should register you new app with our galleries models and include the\nthumbnail preview.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-galleries", "package_url": "https://pypi.org/project/django-galleries/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-galleries/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/django-galleries/1.4.0/", "requires_dist": null, "requires_python": null, "summary": "Simple Django galleries.", "version": "1.4.0" }, "last_serial": 3651968, "releases": { "1.2.0": [ { "comment_text": "", "digests": { "md5": "32e80b090fb6cc05415090ea8173a5a9", "sha256": "75ed77542c30f5aeb19eb83e79ddcc9786f765e9b70b9100c35365b9f86daf1f" }, "downloads": -1, "filename": "django-galleries-1.2.0.tar.gz", "has_sig": false, "md5_digest": "32e80b090fb6cc05415090ea8173a5a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11781, "upload_time": "2015-02-02T20:24:24", "url": "https://files.pythonhosted.org/packages/2a/a7/ee39eda69f7f5de5dc6c15950da3d3e46dd39e4546de06a693915b37ac06/django-galleries-1.2.0.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "d774be3aa977c71c2ad2550a3e0c7fb5", "sha256": "9bf1f2fbed7bf93b2a73a9d304e9bccbb887b2e97c3d9aeff8af2c0bafd69ad8" }, "downloads": -1, "filename": "django-galleries-1.3.0.tar.gz", "has_sig": false, "md5_digest": "d774be3aa977c71c2ad2550a3e0c7fb5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12584, "upload_time": "2015-04-23T20:43:53", "url": "https://files.pythonhosted.org/packages/84/50/1493180246a91cc430865b495fd7918bb7683c569742d440c7a1ed06864d/django-galleries-1.3.0.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "f9e6521f3632500e47e2f83689481c9e", "sha256": "599ad7e25884986f000455796304a38a239fdf857ae3c6733b9480c9a36be829" }, "downloads": -1, "filename": "django-galleries-1.4.0.tar.gz", "has_sig": false, "md5_digest": "f9e6521f3632500e47e2f83689481c9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12381, "upload_time": "2015-04-23T21:51:29", "url": "https://files.pythonhosted.org/packages/27/24/05315a10bc6f94f9b972f6423e5abbf6db27a241dc5cbfc91268f7173358/django-galleries-1.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f9e6521f3632500e47e2f83689481c9e", "sha256": "599ad7e25884986f000455796304a38a239fdf857ae3c6733b9480c9a36be829" }, "downloads": -1, "filename": "django-galleries-1.4.0.tar.gz", "has_sig": false, "md5_digest": "f9e6521f3632500e47e2f83689481c9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12381, "upload_time": "2015-04-23T21:51:29", "url": "https://files.pythonhosted.org/packages/27/24/05315a10bc6f94f9b972f6423e5abbf6db27a241dc5cbfc91268f7173358/django-galleries-1.4.0.tar.gz" } ] }