I am working on a custom Django form field and accompanying widget. While rendering the template, i would like to inspect the form.field as a python object.
How do I do that, because anything in a Django template outside of template tags and filters is rendered as text.
You’ll need to write and install a custom tag (or filter… though that might considered be somewhat bizarre, it may help you fit in more places) that, as a side effect, performs the
loggingcalls you desire (orprint>>sys.stderror whatever).