Skip to main content

A Wagtail richdocument content type build with stremfield.

Project description

This is a wagtail app to be applied on wagtail generic docs. It adds the following streamfield blocks:

  • doc_byline

  • body_text

  • quote

  • bustout

  • code_chunk

  • math_formula

  • table

  • media_embed

Dependencies

Quick Start

  1. add “utphy_richdocument” to your INSTALLED_APPS setting:

    INSTALLED_APPS = [
        ...
        'utphy_richdocument',
    ]
  2. In your own app create a new model which subclasses the StreamFieldDoc model:

    from utphy_richdocument.models import StreamFieldDoc
    
    class YourModel(StreamFieldDoc):
        template = 'path_to_your_template.html'
  3. Run python manage.py collectstatic to collect the static files from the app into your own static section.

  4. Run python manage.py migrate to update the tables in your app.

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-utphy-richdocument-0.3.tar.gz (21.4 kB view hashes)

Uploaded Source

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