Skip to main content

simple implementation of gallery for feincms

Project description

feincms_simplegallery is a simple implementation of gallery for feincms

Quick start

  1. Add “feincms_simplegallery” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = (
        ...
        'feincms_simplegallery',
    )
    
  2. If you intend to use it as feincms content type, register GalleryContent for your Page model (or any other Base-derived model) like this:

    from feincms_simplegallery.models import GalleryContent
    # ...
    Page.create_content_type(GalleryContent)
    
  3. (optional) It is possible to define TYPE_CHOICES for GalleryContent if you want to render galleries using different templates:

    from feincms_simplegallery.models import GalleryContent
    # ...
    Page.create_content_type(GalleryContent, TYPE_CHOICES=(
            ('default', 'default template'),
            ('other', 'some other template'),
            # ... (other types)
        )
    )
    
    # galleries will be rendered as either of these, depending on admin choice:
    # templates/content/feincms_simplegallery/default.html
    # templates/content/feincms_simplegallery/other.html
    # ...
    
    Some of the templates (grid and lightbox) are bundled with the plugin
    
  4. Migrate your models

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for feincms-simplegallery, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size feincms_simplegallery-0.3.1-py2.py3-none-any.whl (18.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size feincms_simplegallery-0.3.1.tar.gz (13.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page