template information in django view

8 views
Skip to first unread message

jay K.

unread,
Nov 8, 2011, 1:39:12 PM11/8/11
to Django users

Hello,

Is there any way I could retrieve information about a template,
such as template name, url, etc inside a view? is there built-in
object that represents the template object?

thanks

regards

Daniel Roseman

unread,
Nov 8, 2011, 5:40:03 PM11/8/11
to django...@googlegroups.com
You seem confused. Views render templates, not the other way round. The 'template name' only exists if the view decides to render a template.
--
DR.
Reply all
Reply to author
Forward
0 new messages