Ticket #15530: typo_in_template_loader_deprecated_warning_r15702.diff
File typo_in_template_loader_deprecated_warning_r15702.diff, 1.0 KB (added by , 14 years ago) |
---|
-
django/template/loader.py
141 141 # For backward compatibility 142 142 import warnings 143 143 warnings.warn( 144 "`django.template.loader s.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.", 145 145 DeprecationWarning 146 146 ) 147 147 template, origin = find_template(name, dirs) 148 148 if hasattr(template, 'render'): 149 raise Exception("Found a compiled template that is incompatible with the deprecated `django.template.loader s.find_template_source` function.")149 raise Exception("Found a compiled template that is incompatible with the deprecated `django.template.loader.find_template_source` function.") 150 150 return template, origin 151 151 152 152 def get_template(template_name):