Please bear with me as I continue to learn and struggle. We installed
ElementTree and started tinkering around with it, but we are still
having problems when we try to have the view pass anything to the
templates. The code has been stripped down to:
from sputnik.utils.elementtree.elementtree import ElementTree
def catalog(request):
xml_doc = ElementTree.parse('/usr/web/www/test_catalog.xml')
raise IndexError, "Can we at least get to here?"
datum = 'lalala'
return render_to_response('path_to/generic_output.html',
{'output':datum})
Where generic_output.html will just display {{output}}. When we call up
this page, the IndexError is not raised and nothing is displayed on the
page (or in the source for the page), not even "lalala". When we play
around with this same code in the shell, it handles everything as
expected, we just can't seem to make it show up properly (or at all for
now) on the templates.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---