Re: Converting namespaces to dictionaries for use in template context processors ...

2009-10-15 Thread jc
Hey, so to follow up ... I wrote my own that seems to do the trick, my little project here is called Tycho, so the Tycho.globals.Config contains the stuff mentioned in my previous email: # ContextProcessors.py # # all Tycho context processors: import Tycho.globals.Config i

Converting namespaces to dictionaries for use in template context processors ...

2009-10-15 Thread jc
Hey Django users, So I've got a python file in my django app that I'm using to store some configs in (to be global across several django apps), it's basically looks something like this: [ -- Contents of Config.py -- ] VERSION = '0.1' MEDIA_PREFIX = '/usr/local/dev-www/m/' [ .. etc ...] class u: