Re: How do I echo template variables?

2007-07-30 Thread Pensee
On Jul 30, 7:42 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > try to pprint the variables you pass the template directly in the view fonction they will appear in the console if you use the django dev server :) --~--~-~--~~~---~--~~ You received

Re: How do I echo template variables?

2007-07-30 Thread Pensee
Welcome ! On Jul 30, 2:01 pm, "Peter Melvyn" <[EMAIL PROTECTED]> wrote: > On 7/30/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > Try {% debug %} > > If you mentioned this feature: is there an easy way to reformat {% > debug %} output the same/similiar way an exception error is

Re: How do I echo template variables?

2007-07-30 Thread Russell Keith-Magee
On 7/30/07, Peter Melvyn <[EMAIL PROTECTED]> wrote: > > On 7/30/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > Try {% debug %} > > If you mentioned this feature: is there an easy way to reformat {% > debug %} output the same/similiar way an exception error is reported? Not easily. {%

Re: How do I echo template variables?

2007-07-30 Thread Peter Melvyn
On 7/30/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > Try {% debug %} If you mentioned this feature: is there an easy way to reformat {% debug %} output the same/similiar way an exception error is reported? Peter --~--~-~--~~~---~--~~ You received this

Re: How do I echo template variables?

2007-07-30 Thread Chris Hoeppner
Russell Keith-Magee escribió: > On 7/30/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > >> I didn't know of that function. Nice to know. But, is there a var where >> to access *all* the vars available in the template and it's contents? >> I've been needing that one for debugging for ever! >>

Re: How do I echo template variables?

2007-07-30 Thread Russell Keith-Magee
On 7/30/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > I didn't know of that function. Nice to know. But, is there a var where > to access *all* the vars available in the template and it's contents? > I've been needing that one for debugging for ever! Try {% debug %}

Re: How do I echo template variables?

2007-07-30 Thread Chris Hoeppner
Nathan Ostgard escribió: > Try: {{ data|pprint }} > > On Jul 29, 10:42 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >> I'm coming from CakePHP and I would typically set a variable for use >> in my view with a call to findAll. Since there is a lot of data in the >> array, I typically do

Re: How do I echo template variables?

2007-07-30 Thread Nathan Ostgard
Try: {{ data|pprint }} On Jul 29, 10:42 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm coming from CakePHP and I would typically set a variable for use > in my view with a call to findAll. Since there is a lot of data in the > array, I typically do something like: > > > > > > This

How do I echo template variables?

2007-07-29 Thread [EMAIL PROTECTED]
I'm coming from CakePHP and I would typically set a variable for use in my view with a call to findAll. Since there is a lot of data in the array, I typically do something like: This way, I can find out what data is available in the view and figure out how much I can scale back the