Cheetah templates
Hi,
I use the conventional Django template system for everything except
for one task in which I would like to use Cheetah.
I've got the following code in a view:
source, loader =
django.template.loader.find_template_source('tools/example.tmpl')
contents=Cheetah.Template.Template(source,searchList=[logo])
return HttpResponse(contents)
and I get this response:
... lib/python2.6/django/template/loader.py", line 149, in
find_template_source
raise Exception("Found a compiled template that is incompatible
with the deprecated `django.template.loaders.find_template_source`
function.")
The "tools/example.tmpl" is a subdirectory under my templates dir,
which is configured in the settings TEMPLATE_DIRS and django has no
problem finding other templates in those subdirectories.
Can someone point out what I'm doing wrong here?
thanks,
--Tim Arnold
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home