- Notifications
You must be signed in to change notification settings - Fork 340
Closed
Description
The Jinja example configuration was giving me an error:
AttributeError: 'Environment' object has no attribute 'install_gettext_translations'
I resolved it by changing it to:
from django_jinja.builtins import DEFAULT_EXTENSIONS TEMPLATES = [ # https://github.com/owais/django-webpack-loader#jinja2-configuration { "BACKEND": "django_jinja.backend.Jinja2", "APP_DIRS": True, "OPTIONS": { "extensions": DEFAULT_EXTENSIONS + ["webpack_loader.contrib.jinja2ext.WebpackExtension",], } } ] Thanks!
Metadata
Metadata
Assignees
Labels
No labels