Ticket #7377: template_loader.diff
File template_loader.diff, 1.1 KB (added by , 16 years ago) |
---|
-
django/template/__init__.py
932 932 933 933 add_to_builtins('django.template.defaulttags') 934 934 add_to_builtins('django.template.defaultfilters') 935 add_to_builtins('django.template.loader_tags') -
django/template/loader.py
21 21 # installed, because pkg_resources is necessary to read eggs. 22 22 23 23 from django.core.exceptions import ImproperlyConfigured 24 from django.template import Origin, Template, Context, TemplateDoesNotExist , add_to_builtins24 from django.template import Origin, Template, Context, TemplateDoesNotExist 25 25 from django.conf import settings 26 26 27 27 template_source_loaders = None … … 116 116 # If we get here, none of the templates could be loaded 117 117 raise TemplateDoesNotExist, ', '.join(template_name_list) 118 118 119 add_to_builtins('django.template.loader_tags')