{% extends 'example_app/base.html' %} {% load static %} {# comment : Allows to display the fields with DSFR layout #} {% load static dsfr_tags %} {# comment : Widget tweaks allows to add classes to the html elements with add_class #} {% load widget_tweaks %} {% comment %} Radio button and multiple checkboxes : -Help text under each button/checkbox : In your forms.py, in the ChoiceField or MultipleChoiceField, instead of choices=(("a", "label a"), ("b", "label b"), ...), put choices=(("a", {"label":"label a", "help_text":"help text a"}), ("b", {"label":"label b", "help_text":"help text b"})), -Horizontal list of buttons/checkboxes : In your forms.py, in the RadioSelect widget or the CheckboxSelectMultiple widget, put attrs={"class":"fr-fieldset--inline"} {% endcomment %} {% block extra_css %} {% endblock extra_css %} {% block content %} {# comment : Everything that needs to be outside the form, before #} {% block before-form %} {% endblock before-form %}