Baptiste Mispelon
|
34263c67b4
|
Moved the loader tags registration with the other builtins.
|
2014-01-19 20:11:32 +01:00 |
Alex Gaynor
|
fe995e6cbd
|
Fixed the remaining E302 violations int eh django package
|
2013-11-02 17:37:15 -07:00 |
Berker Peksag
|
2f0566fa61
|
Fixed #4278 -- Added a dirs parameter to a few functions to override TEMPLATE_DIRS.
* django.template.loader.get_template()
* django.template.loader.select_template()
* django.shortcuts.render()
* django.shortcuts.render_to_response()
Thanks amcnabb for the suggestion.
|
2013-09-18 07:37:08 -04:00 |
Gregor MacGregor
|
b2b763448f
|
Fixed #20841 -- Added messages to NotImplementedErrors
Thanks joseph at vertstudios.com for the suggestion.
|
2013-09-10 11:09:59 -04:00 |
Curtis Maloney
|
a3e7d73ed7
|
Allowed Context.push to behave as a context mananger.
Thanks Loic Bistuer for the review.
|
2013-07-17 13:32:32 -04:00 |
Claude Paroz
|
7c5b244826
|
Fixed #17061 -- Factored out importing object from a dotted path
Thanks Carl Meyer for the report.
|
2013-02-04 16:38:25 +01:00 |
Aymeric Augustin
|
3cb2457f46
|
[py3] Replaced basestring by six.string_types.
|
2012-07-22 09:29:54 +02:00 |
Claude Paroz
|
3904b74a3f
|
Fixed #18013 -- Use the new 'as' syntax for exceptions.
Thanks Clueless for the initial patch.
Note that unittest has been purposely left out (external package only used by Python 2.6).
|
2012-04-29 20:57:15 +02:00 |
Carl Meyer
|
75199e8f6d
|
Fixed #16866 -- Clearer error message if empty list is passed to select_template. Thanks Silver_Ghost for report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16861 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2011-09-21 14:20:18 +00:00 |
Russell Keith-Magee
|
4d94c0cb38
|
Advanced deprecations in django.template.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15985 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2011-04-02 08:41:03 +00:00 |
Russell Keith-Magee
|
edfed18581
|
Fixed #15502 -- Ensure that nested TemplateDoesNotExist errors are propegated with a meaningful error message when loaded using select_template. Thanks to jaylett for the report, and GDorn for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15717 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2011-03-03 00:41:40 +00:00 |
Russell Keith-Magee
|
17bd34930a
|
Fixed #15530 -- Corrected typo in template loader deprecation message. Thanks to msaelices for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15714 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2011-03-03 00:25:17 +00:00 |
Chris Beaven
|
1073a83f2c
|
Ensure render_to_string leaves the context instance stack in the state it was originally passed in.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2011-02-20 04:55:11 +00:00 |
Russell Keith-Magee
|
0be14b0b96
|
Fixed #12248 -- Refactored django.template to get code out of __init__.py, to help with avoiding circular import dependencies. Thanks to Tom Tobin for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14722 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2010-11-27 05:47:30 +00:00 |
Russell Keith-Magee
|
1070c57b83
|
Fixed #14436 -- Escalated 1.2 PendingDeprecationWarnings to DeprecationWarnings, and removed 1.1 deprecated code.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2010-10-11 12:20:07 +00:00 |
Russell Keith-Magee
|
003fe52225
|
Fixed #13123 -- Cleaned up template loader for PyPy compatibility. Thanks to avostryakov for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2010-03-18 15:35:15 +00:00 |
Karen Tracey
|
80e744945c
|
Fixed #12787: Correctly identify the template that does not exist when a template being extended includes another template that does not exist. Thanks to trigeek38 for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12792 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2010-03-16 14:34:57 +00:00 |
Karen Tracey
|
698410ab6f
|
Fixed #12992: Adjusted the new template loader code so that the template
file name is correctly reported on the debug page when a template syntax
error is raised.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12643 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2010-03-01 23:05:35 +00:00 |
Adrian Holovaty
|
5ceed0a053
|
Changed a whole bunch of places to raise exception instances instead of old-style raising exception classes plus a comma. Good for the future Python 3 conversion
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2010-01-10 18:36:20 +00:00 |
Simon Willison
|
c804179126
|
Fixed a broken ImproperlyConfigured error message
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-12-20 22:46:35 +00:00 |
Russell Keith-Magee
|
44b9076bbe
|
Fixed #6262 -- Added a cached template loader, and modified existing template loaders and tag to be cacheable. Thanks to Mike Malone for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11862 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-12-14 12:08:23 +00:00 |
Jacob Kaplan-Moss
|
c485e236bd
|
Fixed #8193: all dynamic imports in Django are now done correctly. I know this because Brett Cannon borrowed the time machine and brought Python 2.7's '`importlib` back for inclusion in Django. Thanks for the patch-from-the-future, Brett!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-03-18 16:55:59 +00:00 |
Russell Keith-Magee
|
f696c175d8
|
Fixed #6950 -- Modified initialization of template loaders to use a temporary variable instead of directly modifying the global loader list. Thanks, mrts.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7563 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2008-05-29 12:40:25 +00:00 |
Malcolm Tredinnick
|
880e3cfaa6
|
Backed out the changes in [5482] for a bit whilst some more investigation into
side-effects is done. Refs #4565.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-06-22 07:15:04 +00:00 |
Malcolm Tredinnick
|
bccb8897e6
|
Fixed #4565 -- Changed template rendering to use iterators, rather than
creating large strings, as much as possible. This is all backwards compatible.
Thanks, Brian Harring.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5482 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-06-17 07:11:37 +00:00 |
Russell Keith-Magee
|
d043200077
|
Refs #2333 - Re-added the template rendering signal for testing purposes; however, the signal is not available during normal operation. It is only added as part of an instrumentation step that occurs during test framework setup. Previous attempt (r3659) was reverted (r3666) due to performance concerns.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3707 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-09-02 09:26:24 +00:00 |
Adrian Holovaty
|
2c2653db9f
|
Reverted [3659], the 'name' field on Template objects and the signal emitted whenever a template is rendered. Refs #2333.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3666 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-08-27 18:10:32 +00:00 |
Russell Keith-Magee
|
89fa97b837
|
Refs #2333 - Added a signal that is emitted whenever a template is rendered, and added a 'name' field to Template to allow easy identification of templates.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-08-27 12:35:07 +00:00 |
Jacob Kaplan-Moss
|
a926046ba6
|
Second half of little cleanup tweaks suggested by pyflakes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-21 20:39:17 +00:00 |
Adrian Holovaty
|
f69cf70ed8
|
MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-05-02 01:31:56 +00:00 |