Re: find_template Django 1.3

2011-08-26 Thread demalexx
Thank you for workaround. In my case I solved it in different way. I know that all email templates are in db, and we use django-dbtemplates to get them as any other template. So instead of using Django's `find_template`, I use dbtemplate loader directly, and it returns template source. However it's

Re: find_template Django 1.3

2011-08-25 Thread Doug Ballance
I haven't moved to 1.3 yet, but we do a few things with the template source too so this is definitely of interest. It looks like most of the template loaders define a load_template_source method implementation that does return the source, except for the cached loader. As a work around you could a

find_template Django 1.3

2011-08-25 Thread demalexx
Hello, In Django 1.3 templates work a little different, in particular, `find_template` returns compiled Template object, not template source. There is a ticket here https://code.djangoproject.com/ticket/15102 but last entry is 4 months old and I can't tell from discussion whether in future Django