A Wagtail richdocument content type build with stremfield.
Project description
# UTPHY Richdocument
This is a wagtail app written by the Department of Physics at the University of Toronto to apply on wagtail generic docs.
It adds the following streamfield blocks:
- doc_byline
- body_text
- quote
- bustout
- code_chunk
- math_formula
- table
- media_embed
## Dependencies
[wagtail](https://wagtail.io)
## 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.
This is a wagtail app written by the Department of Physics at the University of Toronto to apply on wagtail generic docs.
It adds the following streamfield blocks:
- doc_byline
- body_text
- quote
- bustout
- code_chunk
- math_formula
- table
- media_embed
## Dependencies
[wagtail](https://wagtail.io)
## 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for wagtail-utphy-richdocument-0.1a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bd3772535a0c78e5094b8e5264759365d7d2dcef1cefcf1b798ce7fdedab273 |
|
MD5 | 3633cd9fd2d9b5d142c5c610366523f1 |
|
BLAKE2b-256 | 879767e68f7162e92f0efb67358b1b1692c9351bfa1b37e5b26fbc5bcb70dc97 |