Ticket #8965: 8965_template_loader_error.diff
File 8965_template_loader_error.diff, 682 bytes (added by , 16 years ago) |
---|
-
django/template/loaders/filesystem.py
10 10 if not template_dirs: 11 11 template_dirs = settings.TEMPLATE_DIRS 12 12 for template_dir in template_dirs: 13 try: 14 yield safe_join(template_dir, template_name) 15 except ValueError: 16 # The joined path was located outside of template_dir. 17 pass 13 yield safe_join(template_dir, template_name) 18 14 19 15 def load_template_source(template_name, template_dirs=None): 20 16 tried = []