Debian Codegraph @

CHANGES.adoc

raw
1 Changelog
2 =========
3
4 Version 2.11.0
5 --------------
6
7 _Released September 3rd, 2023_
8
9 - Drop Django 2.2 support, now require >=3.2.
10 - Drop Python 3.6 and 3.7 support, now require >=3.8.
11 - Add Django 4.1 and 4.2 support.
12 - Add Python 3.11 support.
13 - Provide a better default template engine NAME than 'backend' (#303):
14
15 Previously, when configuring `TEMPLATES` in Django's settings,
16 `NAME` had to be set to avoid the template engine's name becoming `"backend"`:
17
18 [source,python]
19 ----
20 TEMPLATES = [
21 {
22 "NAME": "jinja2",
23 "BACKEND": "django_jinja.backend.Jinja2",
24 ----
25
26 If your code matches that pattern, it can now be simplified to:
27
28 [source,python]
29 ----
30 TEMPLATES = [
31 {
32 "BACKEND": "django_jinja.jinja2.Jinja2",
33 ----
34
35 There are no plans to remove support for the old `backend` import path, for consideration of existing projects.
36 Also, be careful if you've set `NAME` to `"jinja"` (not `"jinja2"`)!
37
38
39 Version 2.10.2
40 --------------
41
42 _Released May 12th, 2022_
43
44 - Fix compatibility with Jinja2 3.1 in tests (#296).
45
46
47 Version 2.10.1
48 --------------
49
50 _Released May 12th, 2022_
51
52 - Update links in documentation to point to new home of Jinja2 docs (#295).
53
54
55 Version 2.10.0
56 --------------
57
58 _Released December 10th, 2021_
59
60 - Fix usage of `unittest` to be ready for Python 3.11 (#288).
61 - Fix `default_app_config` deprecation warning for Django 3.2 (#289).
62 - Replace Travis with GitHub Actions, dropping `ppc64le` arch tests (#290).
63 * Added Python 3.10 to tests (Django supports it if >=3.2.9).
64 - Run pyupgrade, remove compatibility code (#291).
65 - Add support for Django 4.0, with more old-code cleanup (#292).
66 * Remove use of `django.conf.urls.url` in test app (gone in Django 4.0).
67 * Set `DEFAULT_AUTO_FIELD` to avoid warnings in test app.
68 * Remove `django_jinja.contrib._pipeline` package, which was deprecated in 2015.
69 * Drop formal Django 3.0 and 3.1 support.
70 ** Projects using these versions should still function until support for 2.2 is dropped.
71 - Django 2.2 and Python 3.6 will likely be dropped in the next non-patch release.
72
73
74 Version 2.9.1
75 -------------
76
77 _Released September 4th, 2021_
78
79 - Complete config example in the docs now reflects actual project defaults (#286).
80 - `get_template` no longer calls `template_name.endswith` twice under the default setup.
81 - Rewrite usage and template matching config sections in the docs, to fully explain behavior.
82
83
84 Version 2.9.0
85 -------------
86
87 _Released July 2nd, 2021_
88
89 - Jinja2 policies now settable via `TEMPLATES[n]['OPTIONS']['policies']` (#285).
90 - `makemessages` now respects the `ext.i18n.trimmed` policy,
91 will automatically trim jinja `{% trans %}` blocks when generating `.po` files.
92
93
94 Version 2.8.0
95 -------------
96
97 _Released May 24th, 2021_
98
99 - Upgrade to jinja2 3.0, dropping support for 2.11 and below (#279).
100 - Dropped Python 3.5 support.
101
102
103 Version 2.7.1
104 -------------
105
106 _Released April 16th, 2021_
107
108 - Fixed `makemessages` command, which in 2.7.0 could not detect `{% trans %}` tags in Django templates (#272).
109 - Fixed `{% cache %}` tag to allow a timeout of `None` (to cache forever), which Django's tag added in 2.0 (#274).
110 - Fixed README not displaying in project description at PyPI (#276).
111 - Added Django 3.2 support.
112
113
114 Version 2.7.0
115 -------------
116
117 _Released August 20th, 2020_
118
119 - Fixed loading template names with backslashes on Windows (#249).
120 - Added Django's `json_script` filter for Django 2.1 and higher.
121 - Fixed docs site stylesheet.
122 - Added Django 3.1 support.
123 - Removed Django 1.11 support.
124 - Added Python 3.9 (rc1) to test suite.
125 - Clarified "not recommended" usage of context processors with django-jinja in the docs.
126
127
128 Version 2.6.0
129 -------------
130
131 _Released February 1st, 2020_
132
133 - Documented compatibility changes made in version 2.5.0.
134 - Cut new release to reflect this in package metadata.
135
136
137 Version 2.5.0
138 -------------
139
140 - Fix compatibility issues with Django 3.0, minimum version now 1.11.
141 - Dropped support for Python 2.7, 3.4, adding support through 3.8.
142
143
144 Version 2.4.2
145 -------------
146
147 - Added `Template.stream` method to use with StreamingHttpResponse.
148
149
150 Version 2.4.1
151 -------------
152
153 - Minor improvements on `makemessages`.
154
155
156 Version 2.4.0
157 -------------
158
159 - Revert the 2.3.1 change because importing jinja templates from
160 django is not intended feature and that change breaks the django
161 template object signature.
162
163
164 Version 2.3.1
165 -------------
166
167 - Add minor fixes allowing creating templatetags that can load jinja2
168 templates into django templates (refer to issues #94 and #201 for
169 more information).
170
171
172 Version 2.3.0
173 -------------
174
175 - Fix compatibility issues with django 1.11
176
177
178 Version 2.2.2
179 -------------
180
181 - Fix many warnings for django 2.0
182
183
184 Version 2.2.1
185 -------------
186
187 - Fix compatibility issues with django 1.9.
188
189
190 Version 2.2.0
191 -------------
192
193 - Remove `removetags` filter (making compatible with django 1.10).
194
195
196 Version 2.1.3
197 -------------
198
199 - Fix support passing in django template contexts.
200 - Fix template name matching on tests.
201
202
203 Version 2.1.2
204 -------------
205
206 - Fix compatibility issues with django 1.8
207 - Fix unicode decode error on cache tag.
208
209
210 Version 2.1.1
211 -------------
212
213 - Improve makemessages command.
214
215
216 Version 2.1.0
217 -------------
218
219 - Fix support for django debug toolbar 1.4
220 - Improve syntax error reporting.
221 - Improve debug instrumentation.
222
223
224 Version 2.0.0
225 -------------
226
227 - Remove django < 1.8 compatibility.
228 - Major code refactor for make it now more simpler.
229
230
231 Version 1.4.2
232 -------------
233
234 - Minor fix on extensions.
235
236
237 Version 1.4.1
238 -------------
239
240 - Add missing import on setup.py of views.
241
242
243 Version 1.4.0
244 -------------
245
246 - Add generic views helpers (thanks to @sbutler).
247 - Minor fixes on imports.
248 - Add helper for set the "undefined" parameter in a easy way.
249 - Add a simple way to add extensions from apps.
250 - Fixed bug related to csrf_token.
251
252
253 Version 1.3.3
254 -------------
255
256 - Fix django 1.8 compatibilities.
257 - Fix documentation issues.
258 - Remove obsolete code.
259
260
261 Version 1.3.2
262 -------------
263
264 - Do not load django < 1.7 setup related settings for django 1.8 backend.
265 - Fix django-debug-toolbar compatibility.
266
267
268 Version 1.3.1
269 -------------
270
271 - Fix bug related to doble inclusion of DEFAULT_EXTENSIONS.
272 - Remove the extra django filters extension and document the change.
273
274
275 Version 1.3.0
276 -------------
277
278 - Now all builtin filters, and global functions are implemented
279 using jinja2 extensions.
280 - Breaking change: JINJA2_FILTERS_REPLACE_FROM_DJANGO is removed
281
282
283 Version 1.2.1
284 -------------
285
286 - Improved JINJA2_LOADER handling for django <= 1.7
287 - Add documentation entry for JINJA2_LOADER.
288
289
290 Version 1.2.0
291 -------------
292
293 - Allow set custom module as translation engine. (by @toshka)
294
295
296 Version 1.1.1
297 -------------
298
299 - Fix typos on function names.
300 - Honor Django's `setting_changed` signal to reinitialize the Jinja2 environment.
301
302 Thanks to @akx
303
304
305
306 Version 1.1.0
307 -------------
308
309 - Code base refactored.
310 - Add django 1.8 support.
311 - Remove `fix_ampersands` filter.
312 - Fix linebreaksbr autoescape bug.
313 - Start using `jinja2.DebugUndefined` when settings.DEBUG is True.
314
315
316 Version 1.0.5
317 -------------
318
319 - Fix template loaders order.
320 - Convert documentation to asciidoctor.
321 - Move changelog to separated file.
322
323
324 Version 1.0.4
325 -------------
326
327 - Add render_with decorator as replacement for django inclusion_tag.
328 - Reorder how builtin functions/filters are setted making easy overwrite them.
329
330 Version 1.0.3
331 -------------
332
333 - Add timezone template filters and template global functions: localtime, tz and timezone.
334
335 Version 1.0.2
336 -------------
337
338 - Fix bug with application loading with django < 1.7
339
340 Version 1.0.1
341 -------------
342
343 - Fix bug introduced in previous version on `easy_thumbnails` contrib app.
344
345 Version 1.0.0
346 -------------
347
348 - Major code cleanup.
349 - Full django 1.7+ support
350 - Add JINJA2_CONSTANTS settings.
351
352 Version 0.25
353 ------------
354
355 - Enable newstyle gettext by default.
356 - Add settings for easy disable newstyle gettext.
357
358
359 Version 0.24
360 ------------
361
362 - Fix django 1.7 warnings on run tests.
363 - Add all rest methods to error views (403, 404, 500).
364
365 Version 0.23
366 ------------
367
368 - Add settings JINJA2_FILTERS_REPLACE_FROM_DJANGO
369 - Add settings JINJA2_MUTE_URLRESOLVE_EXCEPTIONS
370 - Improvements on cache tag.
371 - Other bugfixes.
372
373
374 Version 0.22
375 ------------
376
377 - Change template order selection.
378 - New contrib: subdomains
379 - New contrib: dajax-ice
380 - Documentation fixes.
381 - Minor improvements.
382
383 Version 0.21
384 ------------
385
386 - Remove obsolete __version__ variable from __init__.py file.
387 - Add bytecode cache with django cache framework support.
388
389 Version 0.20
390 ------------
391
392 - Introduce backward incompatible change: all contrib apps
393 are renamed (prepened _ on each module name) for avoid
394 name conflicts with the original package.
395
396 Version 0.19
397 ------------
398
399 - Bugfixes related to autoescape.
400
401 Version 0.18
402 ------------
403
404 - Test singnal when stream template method is used.
405
406 Version 0.17
407 ------------
408
409 - Add 4xx/500 django special views.
410
411 Version 0.16
412 ------------
413
414 - Remove distribute dependency.
415
416 Version 0.15
417 ------------
418
419 - Put autoescape ON by default.
420 - Add easy_thumbnails contrib app
421 - Add django humanize contrib app
422
423 Version 0.14
424 ------------
425
426 - Add jinja2 extensions loading by default
427
428 Version 0.13
429 ------------
430
431 - New intercept method by regex is added.
432 - Documentation improvements.