Django-components

Latest version: v0.123

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 7

0.123

Fix

- Fix edge cases around rendering components whose templates used the `{% extends %}` template tag ([859](https://github.com/EmilStenstrom/django-components/pull/859))

0.122

Feat

- Add support for HTML fragments. HTML fragments can be rendered by passing `type="fragment"` to `Component.render()` or `Component.render_to_response()`. Read more on how to [use HTML fragments with HTMX, AlpineJS, or vanillaJS](https://EmilStenstrom.github.io/django-components/latest/concepts/advanced/html_tragments).

0.121

Fix

- Fix the use of Django template filters (`|lower:"etc"`) with component inputs [855](https://github.com/EmilStenstrom/django-components/pull/855).

0.120

⚠️ Attention ⚠️ - Please update to v0.121 to fix bugs introduced in v0.119.

Fix

- Fix the use of translation strings `_("bla")` as inputs to components [849](https://github.com/EmilStenstrom/django-components/pull/849).

0.119

⚠️ Attention ⚠️ - This release introduced bugs [849](https://github.com/EmilStenstrom/django-components/pull/849), [#855](https://github.com/EmilStenstrom/django-components/pull/855). Please update to v0.121.

Fix

- Fix compatibility with custom subclasses of Django's `Template` that need to access
`origin` or other initialization arguments. (https://github.com/EmilStenstrom/django-components/pull/828)

Refactor

- Compatibility with `django-debug-toolbar-template-profiler`:
- Monkeypatching of Django's `Template` now happens at `AppConfig.ready()` (https://github.com/EmilStenstrom/django-components/pull/825)

- Internal parsing of template tags tag was updated. No API change. (https://github.com/EmilStenstrom/django-components/pull/827)

0.118

Feat

- Add support for `context_processors` and `RenderContext` inside component templates

`Component.render()` and `Component.render_to_response()` now accept an extra kwarg `request`.

py
def my_view(request)
return MyTable.render_to_response(
request=request
)


- When you pass in `request`, the component will use `RenderContext` instead of `Context`.
Thus the context processors will be applied to the context.

- NOTE: When you pass in both `request` and `context` to `Component.render()`, and `context` is already an instance of `Context`, the `request` kwarg will be ignored.

Page 1 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.