Skip to content

Design decisions

Hanne Moa edited this page May 13, 2024 · 2 revisions
  • We will see if django-template-partials is a good fit
  • Partial templates are prefixed with _
  • Modelname should be in the filename for model specific templates, so: "incident_detail.html" for a page for one Incident, "_incident_description.html" for a standardized partial template for formatting Incident.description etc.
  • Urlnames (in urls.py) should use dashes to separate words, not underscores. Makes them stand out more in templates compared to temnplatetags, variables and filters.
Clone this wiki locally