Join Nostr
2025-10-26 13:55:29 UTC

adamghill on Nostr: I wanted to add a progress SVG to my new project's #Django template via . 1. `uv add ...

I wanted to add a progress SVG to my new project's #Django template via https://github.com/adamghill/dj-spinners.

1. `uv add dj-angles dj-spinners`
2. Add mapper to `dj-angles` settings in my project (https://dj-angles.adamghill.com/en/latest/mappers.html#string-value)
3. Add `"dj_spinners.templatetags.dj_spinners”,` to `TEMPLATES[0].OPTIONS.builtins`
4. Instead of `{% spinner "3-dots-bounce" %} ` use `<dj-spinner name="3-dots-bounce" />`

Voilà!