Changes between Initial Version and Version 1 of Ticket #13470


Ignore:
Timestamp:
05/04/2010 10:46:18 AM (5 years ago)
Author:
Alex
Comment:

Please use preview.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13470

    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Needs documentation unset
  • Ticket #13470 – Description

    initial v1  
    11A work around is to set settings.py TEMPLATE_LOADERS to start with (or
    22contain only) the following:
    3 
     3{{{
    44    'django.template.loaders.filesystem.load_template_source',
    55    'django.template.loaders.app_directories.load_template_source',
    6 
     6}}}
    77However, it seems it would be good to properly set 'source' on nodes when
    88TEMPLATE_DEBUG is True.  To fix this, change template/loader.py's
     
    1010is properly created and sent into get_template_from_string when
    1111TEMPLATE_DEBUG is True:
    12 
     12{{{
    1313    def load_template(self, template_name, template_dirs=None):
    1414        source, origin = self.load_template_source(template_name, template_dirs)
     
    1616        template = get_template_from_string(source, origin=origin_obj, name=template_name)
    1717        return template, origin
    18 
     18}}}
    1919This is based on the 1.2beta-1 release.
Back to Top