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 h
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 wrote:
> >
> > > So are you telling me to pass the
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 each and every
> > functions i define in views.py
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 name and put it into the
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 django-use
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
specifically pass it in.
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 t
7 matches
Mail list logo