Ticket #7377: template_loader.diff

File template_loader.diff, 1.1 KB (added by Matt G <mgeorge@…>, 16 years ago)
  • django/template/__init__.py

     
    932932
    933933add_to_builtins('django.template.defaulttags')
    934934add_to_builtins('django.template.defaultfilters')
     935add_to_builtins('django.template.loader_tags')
  • django/template/loader.py

     
    2121# installed, because pkg_resources is necessary to read eggs.
    2222
    2323from django.core.exceptions import ImproperlyConfigured
    24 from django.template import Origin, Template, Context, TemplateDoesNotExist, add_to_builtins
     24from django.template import Origin, Template, Context, TemplateDoesNotExist
    2525from django.conf import settings
    2626
    2727template_source_loaders = None
     
    116116    # If we get here, none of the templates could be loaded
    117117    raise TemplateDoesNotExist, ', '.join(template_name_list)
    118118
    119 add_to_builtins('django.template.loader_tags')
Back to Top