utphy richdocument
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
install from pypy:
pip install wagtail-utphy-richdocument
add “utphy_richdocument” and “wagtail.contrib.table_block” to your INSTALLED_APPS setting:
INSTALLED_APPS = [
...
'wagtail.contrib.table_block',
'utphy_richdocument',
]
In your own app create a new model which subclasses the StreamFieldDoc model.
models.py:
from utphy_richdocument.models import StreamFieldDoc
from wagtail.wagtailadmin.edit_handlers import StreamFieldPanel
class YourModel(StreamFieldDoc):
template = 'path_to_your_template.html'
content_panels = Page.content_panels + [
# your_model_fields
StreamFieldPanel('body'),
]
In your template, make sure you have the following snippet:
path_to_your_template.py:
{% for block in self.body %}
{{block}}
{% endfor %}
Finally run:
python manage.py collectstatic python manage.py makemigrations python manage.py migrate
Metadata
Release files for wagtail-utphy-richdocument 0.7.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wagtail-utphy-richdocument-0.7.5.tar.gz | 23.6 kB | Without provenance | Details for wagtail-utphy-richdocument-0.7.5.tar.gz |
Release files / wagtail-utphy-richdocument-0.7.5.tar.gz
| Download URL | wagtail-utphy-richdocument-0.7.5.tar.gz |
|---|---|
| Size | 23.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d0a3a3f8750fcf18deb0d48e268e7b22ccbbc614bdb5c434e9fa223d5aa8901
|
|
BLAKE2b-256 checksum How to use checksums |
62f23023fb760b9c3ab15f74ba39a4306159f4fa1655f40ebfab95285da5ca95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for wagtail-utphy-richdocument 0.7.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.