Skip to content

Issue with Jinja configuration #240

@andrewtmendoza

Description

@andrewtmendoza

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions