Skip to main content

KDL Wagtail Base Models

Project description

https://badge.fury.io/py/django-kdl-wagtail.svg https://travis-ci.org/kingsdigitallab/django-kdl-wagtail.svg?branch=master https://codecov.io/gh/kingsdigitallab/django-kdl-wagtail/branch/master/graph/badge.svg

KDL Wagtail Base Models

Documentation

The full documentation is at https://django-kdl-wagtail.readthedocs.io.

Quickstart

Install Django KDL Wagtail:

pip install django-kdl-wagtail

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'wagtail.contrib.settings',
    ...
    'kdl_wagtail.core',
    'kdl_wagtail.people',
    ...
)

Features

  • A Core Wagtail application, kdl_wagtail.core with:
    • An abstract BasePage that contains and introduction and image fields, which all the other class in this package extend

    • A RichTextPage with just a RichTextField (WYSIWYG)

    • A StreamPage with a StreamField body

    • An abstract BaseIndexPage, with functions to return the page’s live children, context, and a function to paginate the children

    • An IndexPage

    • A set of reusable StreamField blocks

    • Simple default templates for the pages and blocks defined in the module

  • A public API based on Wagtail’s API https://docs.wagtail.io/en/latest/advanced_topics/api/v2/configuration.html

  • People application, kdl_wagtail_people with:
    • A Person snippet, this is accessible from the Wagtail menu bar

    • A PersonPage

    • A PeopleIndexPage

  • Zotero application, kdl_wagtail_zotero:
    • A Bibliography model to store entried harvested from a Zotero collection

    • A management command, zotero_import, to import entries from a Zotero collection

    • A BibliographyIndexPage, to display all the bibliography entries

    • The Zotero based Bibliography is available from the Wagtail menu bar

  • Custom settings
    • Footer customisation

    • Analytics integration

  • ProxyPage: a new page type to support shortcuts and external links in menus

TODO

  • generic front end search page (with filters for tags, page types, …)

  • generic/abstract wagtail form page
    • contact us page (could possibly inherit from wagtail form page)

  • FAQ page

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package:

History

0.10 (2021-10-08)

  • ProxyPage: a new page type to support shortcuts and external links in menus

0.9.0 (2020-01-23)

  • Integration with Zotero

  • Base search

0.5.0 (2019-02-05)

  • Wagtail settings for footer text and analytics settings

  • kdl_wagtail_core utils:
    • paginate

  • kdl_wagtail_core template tags:
    • get_page_children

    • get_analytics_id

0.1.0 (2019-01-22)

  • First release on PyPI.

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

django-kdl-wagtail-0.10.1.tar.gz (33.6 kB view details)

Uploaded Source

Built Distribution

django_kdl_wagtail-0.10.1-py2.py3-none-any.whl (73.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-kdl-wagtail-0.10.1.tar.gz.

File metadata

  • Download URL: django-kdl-wagtail-0.10.1.tar.gz
  • Upload date:
  • Size: 33.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for django-kdl-wagtail-0.10.1.tar.gz
Algorithm Hash digest
SHA256 380130d521a32d5e26df33ab766217b1accb8aca285eb29b75fbeb8dea815b17
MD5 dc7ebcb7c6f1908f9945980f03cc101d
BLAKE2b-256 1a26bb8400d224d21d85f09b5552719b06100d34755a76dc28692445200588af

See more details on using hashes here.

File details

Details for the file django_kdl_wagtail-0.10.1-py2.py3-none-any.whl.

File metadata

  • Download URL: django_kdl_wagtail-0.10.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 73.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for django_kdl_wagtail-0.10.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 283c10b9cf1beb09109d32da6b23b9a1c0a41456e93a26d098e2da67ebb9d1e1
MD5 5c88594de5385a98e59ba71fe6c1ecd6
BLAKE2b-256 14a3e930d37e94c1f3e806fb3d31277a5ac5eb4fd25cc7b6240738c664e90de9

See more details on using hashes here.

Supported by

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