django-bootstrap5
django-bootstrap5 copied to clipboard
Proper support for static URLs and django.contrib.staticfiles.storage.ManifestStaticFilesStorage
I am using locally hosted CSS and Javascript files, served through the regular staticfiles
app. Unfortunately, django-bootstrap5
does not seem to support this due to the custom tag logic: https://github.com/zostera/django-bootstrap5/blob/0729e52e0f91b48f5dca8a2e4692bcc4a2a81d42/src/django_bootstrap5/templatetags/django_bootstrap5.py#L157-L220
The corresponding implementation at https://github.com/zostera/django-bootstrap5/blob/main/src/django_bootstrap5/html.py does not seem to work well with https://docs.djangoproject.com/en/5.0/ref/contrib/staticfiles/#manifeststaticfilesstorage as the hash is not really known when evaluating the settings. For this reason, I either have to use my own logic/template tags or monkey-patch the render_tag
function, which both does not feel right.