Tag Archives: context

Multi-dimensional dicts in Python & Django?

The code I’m working on frequently uses multi-dimensional dicts in Python.  There is a bunch of code that seems to be always doing this: # a,b, and c have come from some external data source, QuerySet, etc. a = ‘axis_1′ … Continue reading

Posted in General | Tagged , , , , | 5 Comments

pprinting the Django context object

This was non-obvious to me for quite some time, and I tried several different approaches before settling on this one: If you would like to pprint your Django Context (or RequestContext) object from within a template itself, there are several … Continue reading

Posted in General | Tagged , , , | Leave a comment