summaryrefslogtreecommitdiff
path: root/tests/template_backends
AgeCommit message (Collapse)Author
2015-04-01[1.8.x] Refs #24538 -- Simplified a test per Aymeric's feedback.Tim Graham
Backport of a184a99123e4dc4c2a90c20e1604e5d301cd76bf from master
2015-04-01[1.8.x] Fixed #24538 -- Allowed self in Jinja contextTim Heap
Rendering a Jinja template with self in the context threw an error. While self is a reserved variable in Jinja, including self in the context is not an error, so Django should respect that. Backport of 4ea1909d3c420ba1fbdbf7221cad518d43aef885 from master
2015-03-18[1.8.x] Refs #24469 -- Fixed escaping of forms, fields, and media in ↵Moritz Sichert
non-Django templates. Backport of 6bff3439894ac22d80f270f36513fc86586273f3 from master
2015-02-09[1.8.x] Sorted imports with isort; refs #23860.Tim Graham
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
2015-02-05[1.8.x] Fixed #24265 -- Preserved template backend loading exceptions.Aymeric Augustin
If importing or initializing a template backend fails, attempting to access this template backend again must raise the same exception. Backport of 44ad6915 from master
2015-01-12Deprecated passing a Context to a generic Template.render.Aymeric Augustin
A deprecation path is required because the return type of django.template.loader.get_template changed during the multiple template engines refactor. test_csrf_token_in_404 was incorrect: it tested the case when the hardcoded template was rendered, and that template doesn't depend on the CSRF token. This commit makes it test the case when a custom template is rendered.
2015-01-12Rewrapped TemplateSyntaxError in Jinja2 backend.Aymeric Augustin
Changed import style to avoid confusion between Django's and Jinja2's APIs.
2015-01-06Made context take priority over context processors.Aymeric Augustin
This is the expected behavior, but given RequestContext's tortuous implementation, a straightforward use of its API results in the opposite. This commits fixes a regression that must have happened at different points in the multiple templates engine refactor for different features.
2015-01-01Silenced an ImportWarning in the template_backends tests.Tim Graham
2014-12-28Added basic tests for template backends.Aymeric Augustin