Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						79deb6a071 
					 
					
						
						
							
							Accounted for multiple template engines in template responses.  
						
						
						
						
					 
					
						2015-01-12 21:01:34 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						a3e783fe11 
					 
					
						
						
							
							Deprecated passing a Context to a generic Template.render.  
						
						... 
						
						
						
						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-12 21:01:34 +01:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						9f51d0c86d 
					 
					
						
						
							
							Fixed test from refs  #23913  when running tests in reverse.  
						
						
						
						
					 
					
						2015-01-12 13:20:44 -05:00 
						 
				 
			
				
					
						
							
							
								Ola Sitarska 
							
						 
					 
					
						
						
							
						
						d563e3be68 
					 
					
						
						
							
							Fixed   #23913  -- Deprecated the = comparison in if template tag.  
						
						
						
						
					 
					
						2015-01-11 15:21:01 -05:00 
						 
				 
			
				
					
						
							
							
								Preston Timmons 
							
						 
					 
					
						
						
							
						
						665e0aa6ec 
					 
					
						
						
							
							Fixed   #24094  -- Enabled template tests to run individually.  
						
						
						
						
					 
					
						2015-01-09 11:43:59 -05:00 
						 
				 
			
				
					
						
							
							
								Preston Timmons 
							
						 
					 
					
						
						
							
						
						de9ebdd39c 
					 
					
						
						
							
							Fixed   #24022  -- Deprecated the ssi tag.  
						
						
						
						
					 
					
						2015-01-05 19:35:02 -05:00 
						 
				 
			
				
					
						
							
							
								Claude Paroz 
							
						 
					 
					
						
						
							
						
						51890ce889 
					 
					
						
						
							
							Applied ignore_warnings to Django tests  
						
						
						
						
					 
					
						2014-12-30 18:16:25 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						9eb4f28e89 
					 
					
						
						
							
							Deprecated TEMPLATE_CONTEXT_PROCESSORS.  
						
						
						
						
					 
					
						2014-12-28 17:02:31 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						d3205e3e2e 
					 
					
						
						
							
							Deprecated TEMPLATE_DIRS.  
						
						
						
						
					 
					
						2014-12-28 17:02:30 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						cf0fd65ed4 
					 
					
						
						
							
							Deprecated TEMPLATE_LOADERS.  
						
						
						
						
					 
					
						2014-12-28 17:02:30 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						d3a982556d 
					 
					
						
						
							
							Deprecated TEMPLATE_STRING_IF_INVALID.  
						
						
						
						
					 
					
						2014-12-28 17:02:30 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						3dc01aaaaf 
					 
					
						
						
							
							Deprecated ALLOWED_INCLUDE_ROOTS.  
						
						
						
						
					 
					
						2014-12-28 17:02:30 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						cf1f36bb6e 
					 
					
						
						
							
							Deprecated current_app in TemplateResponse and render(_to_response).  
						
						
						
						
					 
					
						2014-12-28 17:02:29 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						90805b240f 
					 
					
						
						
							
							Supported multiple template engines in render_to_string.  
						
						... 
						
						
						
						Adjusted its API through a deprecation path according to the DEP. 
						
						
					 
					
						2014-12-28 16:23:02 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						5523e4cdbb 
					 
					
						
						
							
							Removed private API find_template.  
						
						... 
						
						
						
						It wasn't documented and it wasn't used anywhere, except in a few tests
that don't test it specifically and can be rewritten with get_template. 
						
						
					 
					
						2014-12-28 16:23:01 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						4ea43ac915 
					 
					
						
						
							
							Supported multiple template engines in get_template and select_template.  
						
						... 
						
						
						
						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). 
						
						
					 
					
						2014-12-28 16:23:01 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						92a2d049a2 
					 
					
						
						
							
							Isolated template tests from Django settings.  
						
						
						
						
					 
					
						2014-12-28 16:23:01 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						7eefdbf7ab 
					 
					
						
						
							
							Cleaned up the django.template namespace.  
						
						... 
						
						
						
						Since this package is going to hold both the implementation of the Django
Template Language and the infrastructure for Multiple Template Engines,
it should be untied from the DTL as much as possible within our
backwards-compatibility policy.
Only public APIs (i.e. APIs mentioned in the documentation) were left. 
						
						
					 
					
						2014-12-28 14:47:31 +01:00 
						 
				 
			
				
					
						
							
							
								Preston Timmons 
							
						 
					 
					
						
						
							
						
						f91d7366e0 
					 
					
						
						
							
							Fixed   #16028  -- Moved defaultfilters tests into template_tests.  
						
						
						
						
					 
					
						2014-12-16 14:45:19 -05:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						71a559e771 
					 
					
						
						
							
							Removed obsolete code for running test_loaders.py.  
						
						... 
						
						
						
						Running this file as a standalone script doesn't work anyway. 
						
						
					 
					
						2014-12-13 22:51:57 +01:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						3bb52c5019 
					 
					
						
						
							
							Refs  #23890  -- Restored silencing of numpy DeprecationWarnings in template tests.  
						
						
						
						
					 
					
						2014-12-06 11:27:15 -05:00 
						 
				 
			
				
					
						
							
							
								Preston Timmons 
							
						 
					 
					
						
						
							
						
						5c68870169 
					 
					
						
						
							
							Fixed   #23958  -- Rewrote filter tests as unit tests.  
						
						
						
						
					 
					
						2014-12-06 10:57:46 -05:00 
						 
				 
			
				
					
						
							
							
								Ramiro Morales 
							
						 
					 
					
						
						
							
						
						16f26defa7 
					 
					
						
						
							
							Converted recently refactored templates tests to SimpleTestCase.  
						
						... 
						
						
						
						These test methods don't need DB setup/teardown.
Refs #23768  and b872134b 
						
						
					 
					
						2014-12-03 18:56:46 -05:00 
						 
				 
			
				
					
						
							
							
								Berker Peksag 
							
						 
					 
					
						
						
							
						
						560b4207b1 
					 
					
						
						
							
							Removed redundant numbered parameters from str.format().  
						
						... 
						
						
						
						Since Python 2.7 and 3.1, "{0} {1}" is equivalent to "{} {}". 
						
						
					 
					
						2014-12-03 14:27:38 -05:00 
						 
				 
			
				
					
						
							
							
								Berker Peksag 
							
						 
					 
					
						
						
							
						
						adacbd64a0 
					 
					
						
						
							
							Fixed "no such test method" error in template_tests.  
						
						... 
						
						
						
						Without this patch, you couldn't run an individual test
case in template_tests.
Refs #23768  
						
						
					 
					
						2014-12-03 13:04:23 +01:00 
						 
				 
			
				
					
						
							
							
								Preston Timmons 
							
						 
					 
					
						
						
							
						
						b872134bfc 
					 
					
						
						
							
							Fixed   #23768  -- Rewrote template tests as unit tests.  
						
						
						
						
					 
					
						2014-12-02 19:18:35 -05:00 
						 
				 
			
				
					
						
							
							
								Baptiste Mispelon 
							
						 
					 
					
						
						
							
						
						c335c0fee9 
					 
					
						
						
							
							Fixed   #23914  -- Improved {% now %} to allow storing its result in the context.  
						
						... 
						
						
						
						Thanks to Tim for the review. 
						
						
					 
					
						2014-11-25 22:11:35 +01:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						d43dd03ca3 
					 
					
						
						
							
							Fixed   #23890  -- Silenced numpy DeprecationWarnings in template tests.  
						
						
						
						
					 
					
						2014-11-25 09:09:13 -05:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						47a131b944 
					 
					
						
						
							
							Encapsulated TEMPLATE_STRING_IF_INVALID in Engine.  
						
						
						
						
					 
					
						2014-11-23 11:53:53 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						29a977ab14 
					 
					
						
						
							
							Moved template loaders management in Engine.  
						
						... 
						
						
						
						Passed the engine instance to loaders. This is a prerequisite for
looking up configuration on the engine instance instead of global
settings.
This is backwards incompatible for custom template loaders that override
__init__. However the documentation doesn't talk about __init__ and the
way to pass arguments to custom template loaders isn't specified. I'm
considering it a private API. 
						
						
					 
					
						2014-11-23 11:52:12 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						17012b6936 
					 
					
						
						
							
							Deprecated dirs argument to override TEMPLATE_DIRS.  
						
						... 
						
						
						
						Cancels 2f0566fa#4278 . 
						
						
					 
					
						2014-11-23 09:29:33 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						a97e72aaab 
					 
					
						
						
							
							Simplified caching of templatetags modules.  
						
						
						
						
					 
					
						2014-11-19 21:35:39 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						9eeb788cfb 
					 
					
						
						
							
							Refactored getting the list of template loaders.  
						
						... 
						
						
						
						This provides the opportunity to move utility functions specific to the
Django Template Language outside of django.template.loader. 
						
						
					 
					
						2014-11-16 21:41:44 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						b503fee7ec 
					 
					
						
						
							
							Removed override_template_loaders and override_with_test_loader.  
						
						... 
						
						
						
						They can be replaced with override_settings and that makes the
corresponding tests much more obvious. 
						
						
					 
					
						2014-11-16 21:40:50 +01:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						2577ae6a08 
					 
					
						
						
							
							Moved all template loaders under django.template.loaders.  
						
						... 
						
						
						
						Reformatted the code of base.Loader according to modern standards.
Turned the test template loader into a regular locmem.Loader -- but
didn't document it.
Added a normal deprecation path for BaseLoader which is a public API.
Added an accelerated deprecation path for TestTemplateLoader which is
a private API. 
						
						
					 
					
						2014-11-16 21:28:26 +01:00 
						 
				 
			
				
					
						
							
							
								Luke Plant 
							
						 
					 
					
						
						
							
						
						b748a8bc67 
					 
					
						
						
							
							Fixed   #23789  -- TemplateResponse handles context differently from render  
						
						
						
						
					 
					
						2014-11-10 14:47:45 +00:00 
						 
				 
			
				
					
						
							
							
								Berker Peksag 
							
						 
					 
					
						
						
							
						
						f7969b0920 
					 
					
						
						
							
							Fixed   #23620  -- Used more specific assertions in the Django test suite.  
						
						
						
						
					 
					
						2014-11-03 11:56:37 -05:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						c0c1bb9e64 
					 
					
						
						
							
							Avoided using private API get_template_from_string.  
						
						
						
						
					 
					
						2014-10-31 11:38:53 +01:00 
						 
				 
			
				
					
						
							
							
								Claude Paroz 
							
						 
					 
					
						
						
							
						
						b9d9287f59 
					 
					
						
						
							
							Fixed urlize after smart_urlquote rewrite  
						
						... 
						
						
						
						Refs #22267 . 
						
						
					 
					
						2014-09-09 21:59:35 +02:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						e122facbd8 
					 
					
						
						
							
							Fixed   #23269  -- Deprecated django.utils.remove_tags() and removetags filter.  
						
						... 
						
						
						
						Also the unused, undocumented django.utils.html.strip_entities() function. 
						
						
					 
					
						2014-08-15 08:20:02 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						d38a00332e 
					 
					
						
						
							
							Updated tests for added newlines in  6868643063.  
						
						
						
						
					 
					
						2014-08-12 20:16:04 -04:00 
						 
				 
			
				
					
						
							
							
								Trey Hunner 
							
						 
					 
					
						
						
							
						
						6868643063 
					 
					
						
						
							
							Added newlines to the ends of CSS, HTML, and JavaScript files missing them.  
						
						
						
						
					 
					
						2014-08-12 19:22:09 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						a9fd740d22 
					 
					
						
						
							
							Fixed   #23276  -- Deprecated passing views as strings to url().  
						
						
						
						
					 
					
						2014-08-12 13:15:40 -04:00 
						 
				 
			
				
					
						
							
							
								Jaap Roes 
							
						 
					 
					
						
						
							
						
						e92b057e06 
					 
					
						
						
							
							Fixed   #23261  -- Deprecated old style list support for unordered_list filter.  
						
						
						
						
					 
					
						2014-08-11 07:04:33 -04:00 
						 
				 
			
				
					
						
							
							
								Anubhav Joshi 
							
						 
					 
					
						
						
							
						
						0dd05c9e66 
					 
					
						
						
							
							Fixed   #16383  -- Raised the AttributeError raised in property of an object when used in a template.  
						
						... 
						
						
						
						Thanks maraujop for the report and Hiroki and Tim Graham for review. 
						
						
					 
					
						2014-07-31 09:13:55 -04:00 
						 
				 
			
				
					
						
							
							
								qingfeng 
							
						 
					 
					
						
						
							
						
						08451f17d0 
					 
					
						
						
							
							Fixed   #23060  -- Prevented UnicodeDecodeError in debug templatetag  
						
						
						
						
					 
					
						2014-07-26 18:03:19 +02:00 
						 
				 
			
				
					
						
							
							
								Anubhav Joshi 
							
						 
					 
					
						
						
							
						
						b1abfb3c59 
					 
					
						
						
							
							Fixed   #21707  -- Added helpful error message when using {{ block.super }} in base template.  
						
						... 
						
						
						
						Thanks mitar for the suggestion. 
						
						
					 
					
						2014-07-24 14:22:19 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						38e001ab6c 
					 
					
						
						
							
							Fixed   #22789  -- Deprecated django.contrib.webdesign.  
						
						... 
						
						
						
						Moved the {% lorem %} tag to built-in tags. 
						
						
					 
					
						2014-07-14 08:45:19 -04:00 
						 
				 
			
				
					
						
							
							
								Claude Paroz 
							
						 
					 
					
						
						
							
						
						e167e96cfe 
					 
					
						
						
							
							Fixed   #22223  -- Prevented over-escaping URLs in reverse()  
						
						... 
						
						
						
						And follow more closely the class of characters defined in the
RFC 3986.
Thanks Erik van Zijst for the report and the initial patch, and
Tim Graham for the review. 
						
						
					 
					
						2014-07-09 09:54:34 +02:00 
						 
				 
			
				
					
						
							
							
								Susan Tan 
							
						 
					 
					
						
						
							
						
						484f3edf1e 
					 
					
						
						
							
							Fixed   #18400  -- Modified length template filter to return 0 for unknown variables.  
						
						... 
						
						
						
						Thanks Florian for the bug report, luyikei for the initial code patch, and
Bouke for the code review feedback. 
						
						
					 
					
						2014-06-05 15:41:56 -04:00