django-bootstrap5 icon indicating copy to clipboard operation
django-bootstrap5 copied to clipboard

Proper support for static URLs and django.contrib.staticfiles.storage.ManifestStaticFilesStorage

Open stefan6419846 opened this issue 9 months ago • 0 comments

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.

stefan6419846 avatar May 22 '24 12:05 stefan6419846