-
Notifications
You must be signed in to change notification settings - Fork 5
Django and Wagtail Frontend
nmorduch edited this page Mar 17, 2022
·
3 revisions
For the most part, this uses standard Django templating conventions with wagtail, django, and a few custom templatetags.
There are handful of base templates that all pages inherit from:
- Sitewide base:
index.html
- base for all posts besides Reports:
post_page.html
- base for all simple pages:
simple_page.html
- templates for blocks
- templates for sitewide trappings
Reports and Program pages use React Router, they all need to serve the same template with the same data, so they fall outside of Django conventions. url routes are defined to serve the correct template.