Skip to content

Commit e7d47b7

Browse files
authored
Fix jinja configuration example (#274)
1 parent 4b6ecb2 commit e7d47b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,12 @@ If you need to output your assets in a jinja template we provide a Jinja2 extens
398398
To install the extension add it to the django_jinja `TEMPLATES` configuration in the `["OPTIONS"]["extension"]` list.
399399
400400
```python
401+
from django_jinja.builtins import DEFAULT_EXTENSIONS
401402
TEMPLATES = [
402403
{
403404
"BACKEND": "django_jinja.backend.Jinja2",
404405
"OPTIONS": {
405-
"extensions": [
406-
"django_jinja.builtins.extensions.DjangoFiltersExtension",
406+
"extensions": DEFAULT_EXTENSIONS + [
407407
"webpack_loader.contrib.jinja2ext.WebpackExtension",
408408
],
409409
}

0 commit comments

Comments
 (0)