Cheers Eric, but 'debug' doesn't seem to work in an intuitive way - at
least to me ;)

e.g.

{% debug %}

dumps this into the page

{'block': <Block Node: content. Contents: [<Text Node: '

<h2>It is '>, <django.core.template.defaulttags.NowNode instance at
0x6bdb70>, <Text Node: '</h2>

<form action="/res'>, <django.core.template.defaulttags.CommentNode
instance at 0x626e68>, <Text Node: '

'>, <If node>, <Text Node: '

'>, <django.core.template.defaulttags.DebugNode instance at 0x6bfa30>,
<Text Node: '

'>, <django.core.template.defaulttags.CommentNode instance at
0x6c2bc0>, <Text Node: '
'>]>}{'errors': {},
 'messages': [],
 'request': <DjangoRequest
GET:<MultiValueDict: {}>,
POST:<MultiValueDict: {}>,
COOKIES:{'sessionid': '4dedacaa4ebc9cd736954b94dab67b8d'},
META:{'CONTENT_LENGTH': '',
 'CONTENT_TYPE': 'text/plain',
...
...

Which is a bit strange, as there's a lot of < and > in there, as well
as <h2> etc. Also, POST and GET are presented using the MultiValueDict
construct as well.

Perhaps I'm being too Zope-specific (used to looking at variables from
forms etc), and that's not a django idiom. If that's the case, I'd
really appreciate a pointer here.

tia,
Cheers,
Tone

Reply via email to