Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | 2023-02-01 | 4 | -4/+0 |
| | | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 | ||||
* | Refs #34233 -- Used str.removeprefix()/removesuffix(). | Mariusz Felisiak | 2023-01-18 | 1 | -1/+1 |
| | |||||
* | Fixed #34220 -- Moved csrf_input_lazy, csrf_token_lazy imports to the toplevel. | rajdesai24 | 2023-01-06 | 1 | -2/+1 |
| | | | This prevents random errors with partially initialized modules. | ||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 5 | -67/+70 |
| | |||||
* | Refs #33476 -- Refactored problematic code before reformatting by Black. | Mariusz Felisiak | 2022-02-03 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], ) | ||||
* | Refs #32987 -- Refactored out get_template_tag_modules(). | Daniel Fairhead | 2021-10-20 | 1 | -10/+19 |
| | |||||
* | Used Path.read_text() in jinja2.get_exception_info(). | Mariusz Felisiak | 2021-09-27 | 1 | -2/+1 |
| | |||||
* | Fixed #27827 -- Used "raise from" when raising InvalidTemplateLibrary ↵ | Jacob Walls | 2020-12-28 | 1 | -1/+1 |
| | | | | | | | exceptions in get_package_libraries(). This change sets the __cause__ attribute to raised exceptions and makes small cleanups in error messages. | ||||
* | Fixed #30425 -- Handled jinja2.TemplateSyntaxError when rendering a template. | Hasan Ramezani | 2019-11-27 | 1 | -7/+24 |
| | | | | | Jinja raises jinja2.TemplateSyntaxError in render() not in get_template() when it's in an included template. | ||||
* | Refs #29817 -- Removed settings.FILE_CHARSET per deprecation timeline. | Mariusz Felisiak | 2019-09-10 | 2 | -3/+2 |
| | |||||
* | Refs #27753 -- Favored SafeString over SafeText. | Tim Graham | 2019-02-06 | 1 | -2/+2 |
| | |||||
* | Fixed #29038 -- Removed closing slash from HTML void tags. | Jon Dufresne | 2018-01-21 | 1 | -1/+1 |
| | |||||
* | Fixed #28906 -- Removed unnecessary bool() calls. | Tim Graham | 2017-12-07 | 1 | -1/+1 |
| | |||||
* | Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()." | Tim Graham | 2017-09-07 | 1 | -6/+5 |
| | | | | This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better. | ||||
* | Removed unnecessary else clause in TemplateStrings.get_template(). | Srinivas Reddy Thatiparthy | 2017-08-07 | 1 | -6/+3 |
| | |||||
* | Fixed #27818 -- Replaced try/except/pass with contextlib.suppress(). | Mads Jensen | 2017-06-28 | 1 | -5/+6 |
| | |||||
* | Refs #27656 -- Updated django.template/tag docstring verbs according to PEP 257. | Anton Samarchyan | 2017-02-17 | 2 | -9/+9 |
| | |||||
* | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | 2017-01-25 | 3 | -3/+3 |
| | |||||
* | Refs #23919 -- Replaced errno checking with PEP 3151 exceptions. | Tim Graham | 2017-01-25 | 1 | -9/+6 |
| | |||||
* | Refs #23919 -- Replaced six.reraise by raise | Claude Paroz | 2017-01-22 | 2 | -12/+3 |
| | |||||
* | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | 2017-01-19 | 3 | -4/+4 |
| | |||||
* | Refs #23919 -- Replaced io.open() with open(). | Aymeric Augustin | 2017-01-18 | 1 | -2/+1 |
| | | | | io.open() is an alias for open() on Python 3. | ||||
* | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | 2017-01-18 | 5 | -15/+0 |
| | |||||
* | Fixed #15667 -- Added template-based widget rendering. | Preston Timmons | 2016-12-27 | 1 | -1/+1 |
| | | | | Thanks Carl Meyer and Tim Graham for contributing to the patch. | ||||
* | Fixed #24694 -- Added support for context_processors to Jinja2 backend. | Berker Peksag | 2016-06-28 | 1 | -3/+13 |
| | |||||
* | Fixed #26306 -- Fixed memory leak in cached template loader. | Alex Hill | 2016-03-16 | 1 | -3/+14 |
| | |||||
* | Replaced dict.setdefault() usage to avoid unnecessary object instantiations. | Benjamin Bach | 2016-01-05 | 1 | -1/+2 |
| | |||||
* | Fixed #25469 -- Added autoescape option to DjangoTemplates backend. | Aaron Elliot Ross | 2015-11-12 | 1 | -1/+2 |
| | | | | Thanks Aymeric for the initial patch and Carl for review. | ||||
* | Removed support for passing a context to a generic Template.render(). | Tim Graham | 2015-09-23 | 1 | -32/+2 |
| | | | | Per deprecation timeline; refs a3e783fe11dd25bbf84bfb6201186566ed473506. | ||||
* | Removed dirs parameter in template engine methods and related funtions. | Tim Graham | 2015-09-23 | 1 | -3/+3 |
| | | | | Per deprecation timeline. | ||||
* | Renamed RemovedInDjangoXYWarnings for new roadmap. | Tim Graham | 2015-06-24 | 1 | -4/+4 |
| | | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more. | ||||
* | Fixed #17085, #24783 -- Refactored template library registration. | Preston Timmons | 2015-05-21 | 1 | -0/+60 |
| | | | | | | * 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. | ||||
* | Fixed #24119, #24120 -- Formalized debug integration for template backends. | Preston Timmons | 2015-05-06 | 3 | -14/+84 |
| | |||||
* | Fixed #24538 -- Allowed self in Jinja context | Tim Heap | 2015-04-01 | 1 | -1/+1 |
| | | | | | | 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. | ||||
* | Deprecated TEMPLATE_DEBUG setting. | Aymeric Augustin | 2015-02-15 | 1 | -1/+1 |
| | |||||
* | Split DTL context creation into its own function. | Aymeric Augustin | 2015-02-10 | 1 | -10/+2 |
| | | | | | | | This reduces the length of rope RequestContext gives users to hang themselves with. Thanks Alex Hill for the report and Tim Graham for the review. | ||||
* | Sorted imports with isort; refs #23860. | Tim Graham | 2015-02-06 | 3 | -5/+5 |
| | |||||
* | Deprecated passing a Context to a generic Template.render. | Aymeric Augustin | 2015-01-12 | 1 | -2/+30 |
| | | | | | | | | | | | 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 Augustin | 2015-01-12 | 1 | -6/+8 |
| | | | | | Changed import style to avoid confusion between Django's and Jinja2's APIs. | ||||
* | Made context take priority over context processors. | Aymeric Augustin | 2015-01-06 | 1 | -1/+7 |
| | | | | | | | | | 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. | ||||
* | Supported multiple template engines in get_template and select_template. | Aymeric Augustin | 2014-12-28 | 1 | -7/+15 |
| | | | | | | This commit changes the return type of these two functions. Instead of returning a django.template.Template they return a backend-specific Template class that must implement render(self, context). | ||||
* | Added Django template backend. | Aymeric Augustin | 2014-12-28 | 5 | -0/+53 |
| | |||||
* | Added jinja2 template backend. | Aymeric Augustin | 2014-12-28 | 1 | -0/+58 |
| | |||||
* | Added dummy template backend. | Aymeric Augustin | 2014-12-28 | 2 | -0/+66 |
| | |||||
* | Imported BaseEngine from the DEP. | Aymeric Augustin | 2014-12-28 | 2 | -0/+80 |
i18n is left aside for now. |