Ticket #15530: typo_in_template_loader_deprecated_warning_r15702.diff

File typo_in_template_loader_deprecated_warning_r15702.diff, 1.0 KB (added by Manuel Saelices, 14 years ago)
  • django/template/loader.py

     
    141141    # For backward compatibility
    142142    import warnings
    143143    warnings.warn(
    144         "`django.template.loaders.find_template_source` is deprecated; use `django.template.loaders.find_template` instead.",
     144        "`django.template.loader.find_template_source` is deprecated; use `django.template.loader.find_template` instead.",
    145145        DeprecationWarning
    146146    )
    147147    template, origin = find_template(name, dirs)
    148148    if hasattr(template, 'render'):
    149         raise Exception("Found a compiled template that is incompatible with the deprecated `django.template.loaders.find_template_source` function.")
     149        raise Exception("Found a compiled template that is incompatible with the deprecated `django.template.loader.find_template_source` function.")
    150150    return template, origin
    151151
    152152def get_template(template_name):
Back to Top