Removing bootstrap5 Templates
The bootstrap5 templates are very out of date because all of the development has gone into daisyUI templates. The continuing presence of the bootstrap5 templates creates confusion. I have in mind a future simplification and modularisation of the template system (something along the lines of template packs like crispy-forms does) but that won't be for a while. So in the meantime, it's better to just remove bootstrap5 completely. This is the plan to do that.
Task List
- Remove the entire app template pack at
src/powercrud/templates/powercrud/bootstrap5/plus every file underneath it. - Drop the sample project equivalents inside
src/sample/templates/sample/bootstrap5/. - Delete all
bootstrap5-specific crispy helper code insrc/powercrud/mixins/htmx_mixin.py. - Remove the template pack handling in
src/powercrud/management/commands/pcrud_mktemplate.py. - Update
src/sample/filters.pyso crispy helpers no longer referencebootstrap5/layout/inline_field.html. - Strip
bootstrap5fromsrc/tests/settings.py(allowed packs, installed apps) and fromsrc/config/settings.py. - Remove the dependency on
crispy-bootstrap5frompyproject.toml,uv.lock, and any other dependency manifests. - Documentation cleanup:
- Update
README.mdso it no longer mentionsbootstrap5. - Update
docs/mkdocs/index.mdto remove anybootstrap5references. - Update
docs/mkdocs/guides/styling_tailwind.mdto reflect the removal. - Update
docs/mkdocs/reference/mgmt_commands.mdso it no longer referencesbootstrap5. - Update
docs/mkdocs/guides/getting_started.mdto removebootstrap5references. - Update
docs/mkdocs/reference/config_options.mdto mention only current frameworks.
- Update
- Scan the repository for
bootstrap5references after the above work to ensure no lingering docs or comments remain.