Skip to main content

A Wagtail app to display photographs

Project description

===== Wagtail Photography

Based on wagtail-photo-gallery

Be warned, this project is still kinda garbage. Mostly I'm just messing about with it but I do hope to polish it up in the not so distant future.

Wagtail-photography is a Wagtail app to display photographs.

Detailed documentation is in the "docs" directory.

Quick start

  1. Install requirements

    pip install wagtail-generic-chooser

  2. Add "wagtail_photography" and wagtail-generic-chooser to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
       ...
       "generic_chooser"
       "wagtail_photography",
    ]
    
  3. Setup Wagtail to dynamically serve image urls:

from wagtail.images.views.serve import ServeView

urlpatterns = [
    ...

    re_path(r'^images/([^/]*)/(\d*)/([^/]*)/[^/]*$', ServeView.as_view(), name='wagtailimages_serve'),

    ...

    # Ensure that the wagtailimages_serve line appears above the default Wagtail page serving route
    re_path(r'', include(wagtail_urls)),
]
  1. Run python manage.py migrate to create the wagtail_photography models.

  2. Start the development server and visit http://127.0.0.1:8000/admin/ to create an album.

Project details


Download files

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

Source Distribution

wagtail-photography-0.2.tar.gz (18.4 kB view details)

Uploaded Source

File details

Details for the file wagtail-photography-0.2.tar.gz.

File metadata

  • Download URL: wagtail-photography-0.2.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for wagtail-photography-0.2.tar.gz
Algorithm Hash digest
SHA256 2b53cedab287d68e22e5476ca3812ae9bc1a3a5c54fc7576ec2a8bc6e05fe854
MD5 6ea88b0eddc82a5d4aefa3262215c3f4
BLAKE2b-256 933c904269007aed70d4a132e3ff80a4a92a7bc96db086b79ed47d6b1a000d02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page