Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/template_backends
Commit message (Collapse)AuthorAgeFilesLines
* Removed support for passing a context to a generic ↵Tim Graham2015-09-241-20/+1
| | | | | | Template.render(). Per deprecation timeline; refs a3e783fe11dd25bbf84bfb6201186566ed473506.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-2/+2
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #17085, #24783 -- Refactored template library ↵Preston Timmons2015-05-2112-1/+87
| | | | | | | | registration. * Converted the ``libraries`` and ``builtins`` globals of ``django.template.base`` into properties of the Engine class. * Added a public API for explicit registration of libraries and builtins.
* Refs #24652 -- Made sure template backend tests call ↵Simon Charette2015-05-201-0/+1
| | | | their super setUpClass.
* Fixed #24119, #24120 -- Formalized debug integration for ↵Preston Timmons2015-05-073-1/+75
| | | | template backends.
* Fixed #24685 -- Fixed check for template name unicity.Aymeric Augustin2015-05-031-0/+9
| | | | Thanks Preston Timmons for the report.
* Refs #24538 -- Simplified a test per Aymeric's feedback.Tim Graham2015-04-011-9/+2
|
* Fixed #24538 -- Allowed self in Jinja contextTim Heap2015-04-011-0/+18
| | | | | | 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.
* Refs #24469 -- Fixed escaping of forms, fields, and ↵Moritz Sichert2015-03-183-1/+28
| | | | media in non-Django templates.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-062-5/+5
|
* Fixed #24265 -- Preserved template backend loading ↵Aymeric Augustin2015-02-051-0/+37
| | | | | | | exceptions. If importing or initializing a template backend fails, attempting to access this template backend again must raise the same exception.
* Removed compatibility with Python 3.2.Tim Graham2015-01-171-12/+5
|
* Deprecated passing a Context to a generic Template.render.Aymeric Augustin2015-01-121-1/+20
| | | | | | | | | | | 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.
* Rewrapped TemplateSyntaxError in Jinja2 backend.Aymeric Augustin2015-01-123-1/+11
| | | | | Changed import style to avoid confusion between Django's and Jinja2's APIs.
* Made context take priority over context processors.Aymeric Augustin2015-01-061-0/+25
| | | | | | | | | 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.
* Silenced an ImportWarning in the template_backends tests.Tim Graham2015-01-011-0/+4
|
* Added basic tests for template backends.Aymeric Augustin2014-12-2811-0/+112