-
Add Django 5.0 support.
-
Switch from
setup.py
topyproject.toml
-style package definition. -
The
makemessages
management command emulates Jinja’strim_blocks
andlstrip_blocks
settings.
Released September 3rd, 2023
-
Drop Django 2.2 support, now require >=3.2.
-
Drop Python 3.6 and 3.7 support, now require >=3.8.
-
Add Django 4.1 and 4.2 support.
-
Add Python 3.11 support.
-
Provide a better default template engine NAME than backend (#303):
Previously, when configuring TEMPLATES
in Django’s settings,
NAME
had to be set to avoid the template engine’s name becoming "backend"
:
TEMPLATES = [
{
"NAME": "jinja2",
"BACKEND": "django_jinja.backend.Jinja2",
If your code matches that pattern, it can now be simplified to:
TEMPLATES = [
{
"BACKEND": "django_jinja.jinja2.Jinja2",
There are no plans to remove support for the old backend
import path, for consideration of existing projects.
Also, be careful if you’ve set NAME
to "jinja"
(not "jinja2"
)!
Released May 12th, 2022
-
Update links in documentation to point to new home of Jinja2 docs (#295).
Released December 10th, 2021
-
Fix usage of
unittest
to be ready for Python 3.11 (#288). -
Fix
default_app_config
deprecation warning for Django 3.2 (#289). -
Replace Travis with GitHub Actions, dropping
ppc64le
arch tests (#290).-
Added Python 3.10 to tests (Django supports it if >=3.2.9).
-
-
Run pyupgrade, remove compatibility code (#291).
-
Add support for Django 4.0, with more old-code cleanup (#292).
-
Remove use of
django.conf.urls.url
in test app (gone in Django 4.0). -
Set
DEFAULT_AUTO_FIELD
to avoid warnings in test app. -
Remove
django_jinja.contrib._pipeline
package, which was deprecated in 2015. -
Drop formal Django 3.0 and 3.1 support.
-
Projects using these versions should still function until support for 2.2 is dropped.
-
-
-
Django 2.2 and Python 3.6 will likely be dropped in the next non-patch release.
Released September 4th, 2021
-
Complete config example in the docs now reflects actual project defaults (#286).
-
get_template
no longer callstemplate_name.endswith
twice under the default setup. -
Rewrite usage and template matching config sections in the docs, to fully explain behavior.
Released July 2nd, 2021
-
Jinja2 policies now settable via
TEMPLATES[n]['OPTIONS']['policies']
(#285). -
makemessages
now respects theext.i18n.trimmed
policy, will automatically trim jinja{% trans %}
blocks when generating.po
files.
Released May 24th, 2021
-
Upgrade to jinja2 3.0, dropping support for 2.11 and below (#279).
-
Dropped Python 3.5 support.
Released April 16th, 2021
-
Fixed
makemessages
command, which in 2.7.0 could not detect{% trans %}
tags in Django templates (#272). -
Fixed
{% cache %}
tag to allow a timeout ofNone
(to cache forever), which Django’s tag added in 2.0 (#274). -
Fixed README not displaying in project description at PyPI (#276).
-
Added Django 3.2 support.
Released August 20th, 2020
-
Fixed loading template names with backslashes on Windows (#249).
-
Added Django’s
json_script
filter for Django 2.1 and higher. -
Fixed docs site stylesheet.
-
Added Django 3.1 support.
-
Removed Django 1.11 support.
-
Added Python 3.9 (rc1) to test suite.
-
Clarified "not recommended" usage of context processors with django-jinja in the docs.
Released February 1st, 2020
-
Documented compatibility changes made in version 2.5.0.
-
Cut new release to reflect this in package metadata.
-
Fix compatibility issues with Django 3.0, minimum version now 1.11.
-
Dropped support for Python 2.7, 3.4, adding support through 3.8.
-
Revert the 2.3.1 change because importing jinja templates from django is not intended feature and that change breaks the django template object signature.
-
Add minor fixes allowing creating templatetags that can load jinja2 templates into django templates (refer to issues #94 and #201 for more information).
-
Fix support for django debug toolbar 1.4
-
Improve syntax error reporting.
-
Improve debug instrumentation.
-
Add generic views helpers (thanks to @sbutler).
-
Minor fixes on imports.
-
Add helper for set the "undefined" parameter in a easy way.
-
Add a simple way to add extensions from apps.
-
Fixed bug related to csrf_token.
-
Do not load django < 1.7 setup related settings for django 1.8 backend.
-
Fix django-debug-toolbar compatibility.
-
Fix bug related to doble inclusion of DEFAULT_EXTENSIONS.
-
Remove the extra django filters extension and document the change.
-
Now all builtin filters, and global functions are implemented using jinja2 extensions.
-
Breaking change: JINJA2_FILTERS_REPLACE_FROM_DJANGO is removed
-
Improved JINJA2_LOADER handling for django ⇐ 1.7
-
Add documentation entry for JINJA2_LOADER.
-
Fix typos on function names.
-
Honor Django’s
setting_changed
signal to reinitialize the Jinja2 environment.
Thanks to @akx
-
Code base refactored.
-
Add django 1.8 support.
-
Remove
fix_ampersands
filter. -
Fix linebreaksbr autoescape bug.
-
Start using
jinja2.DebugUndefined
when settings.DEBUG is True.
-
Fix template loaders order.
-
Convert documentation to asciidoctor.
-
Move changelog to separated file.
-
Add render_with decorator as replacement for django inclusion_tag.
-
Reorder how builtin functions/filters are setted making easy overwrite them.
-
Add timezone template filters and template global functions: localtime, tz and timezone.
-
Fix django 1.7 warnings on run tests.
-
Add all rest methods to error views (403, 404, 500).
-
Add settings JINJA2_FILTERS_REPLACE_FROM_DJANGO
-
Add settings JINJA2_MUTE_URLRESOLVE_EXCEPTIONS
-
Improvements on cache tag.
-
Other bugfixes.
-
Change template order selection.
-
New contrib: subdomains
-
New contrib: dajax-ice
-
Documentation fixes.
-
Minor improvements.
-
Remove obsolete version variable from init.py file.
-
Add bytecode cache with django cache framework support.
-
Introduce backward incompatible change: all contrib apps are renamed (prepened _ on each module name) for avoid name conflicts with the original package.
-
Put autoescape ON by default.
-
Add easy_thumbnails contrib app
-
Add django humanize contrib app