Changes between Initial Version and Version 1 of Ticket #13470
- Timestamp:
- May 4, 2010, 10:46:18 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13470 – Description
initial v1 1 1 A work around is to set settings.py TEMPLATE_LOADERS to start with (or 2 2 contain only) the following: 3 3 {{{ 4 4 'django.template.loaders.filesystem.load_template_source', 5 5 'django.template.loaders.app_directories.load_template_source', 6 6 }}} 7 7 However, it seems it would be good to properly set 'source' on nodes when 8 8 TEMPLATE_DEBUG is True. To fix this, change template/loader.py's … … 10 10 is properly created and sent into get_template_from_string when 11 11 TEMPLATE_DEBUG is True: 12 12 {{{ 13 13 def load_template(self, template_name, template_dirs=None): 14 14 source, origin = self.load_template_source(template_name, template_dirs) … … 16 16 template = get_template_from_string(source, origin=origin_obj, name=template_name) 17 17 return template, origin 18 18 }}} 19 19 This is based on the 1.2beta-1 release.