Re: quickest way to print template names

2009-05-17 Thread Sam Chuparkoff
On Sat, 2009-05-16 at 23:37 -0500, Alex Gaynor wrote: > There isn't a better solution, a Template doesn't store the file it > was rendered from (especially since that doesn't make sense for all > template loaders, such as if you render a template from a string), nor > does the context inherently

Re: quickest way to print template names

2009-05-16 Thread Alex Gaynor
On Sat, May 16, 2009 at 11:14 PM, mickey wrote: > > Ok this doesn't sound too intuitive. If anyone else have a better > solution please do post. > > Thanks. > > On May 16, 8:01 pm, Alex Gaynor wrote: > > On Sat, May 16, 2009 at 9:57 PM, mickey

Re: quickest way to print template names

2009-05-16 Thread mickey
Ok this doesn't sound too intuitive. If anyone else have a better solution please do post. Thanks. On May 16, 8:01 pm, Alex Gaynor wrote: > On Sat, May 16, 2009 at 9:57 PM, mickey wrote: > > > So are you telling me to pass the template name for

Re: quickest way to print template names

2009-05-16 Thread Alex Gaynor
On Sat, May 16, 2009 at 9:57 PM, mickey wrote: > > So are you telling me to pass the template name for each and every > functions i define in views.py? > > > > Yes, the best way would probably be to write a wrapper function around render_to_response that took the template

Re: quickest way to print template names

2009-05-16 Thread mickey
So are you telling me to pass the template name for each and every functions i define in views.py? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: quickest way to print template names

2009-05-16 Thread Alex Gaynor
On Sat, May 16, 2009 at 11:39 AM, mickey wrote: > > Hi > > Does anyone know the fastest way I can print the template name on a > template? > > Perhaps something like {% template_name %} > > Thanks. > > > The current template name isn't in the templates context unless you

quickest way to print template names

2009-05-16 Thread mickey
Hi Does anyone know the fastest way I can print the template name on a template? Perhaps something like {% template_name %} Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to