Dec 09 2009

Getting the name of the current view in a Django template

published by Wes Mason
in blog Isotoma Blog
original entryGetting the name of the current view in a Django template

context processor django inspect python templates template tags views

Recently I have been working with generalised/reusable Django base templates, and I had the need to know the name of the current view using the template. As it turns out, there currently aren’t any simple methods of doing this out there, and some of the nicer ones at their best make use of monkey patching. […]

Tag cloud


Social Sharing

Feeds