Getting the template name in django template
Templates are just strings not file names.  Probably your best option is to monkey patch render_to_response and/or direct_to_template and copy the filename arg into the context.
For debugging purposes, I would like to have a variable in all my templates holding the path of the template being rendered.  For example, if a view renders templates/account/logout.html I would like {{ template_name }} to contain the string templates/account/logout.html.
I don't want to go and change any views (specially because I'm reusing a lot of apps), so the way to go seems to be a context processor that introspects something. The question is what to introspect.
Or maybe this is built in and I don't know about it?