Contextual (via) I’ve been trying to figure out a sane way to replace Django’s settings.py global module with something that’s designed to be reconfigured at run-time. Contextual appears to be trying to solve exactly that problem.
Contextual (via) I’ve been trying to figure out a sane way to replace Django’s settings.py global module with something that’s designed to be reconfigured at run-time. Contextual appears to be trying to solve exactly that problem.
with Settings.new(): # Some logic to choose settings based on the request Settings.load('some/runtime/settings.py') Settings.DATABASE_NAME = 'my_choice' application = django.core.handlers.wsgi.WSGIHandler()Wes Winham - 12th May 2009 14:47 - #
It's possible to change settings at run-time, isn't it?
墨尔本 - 13th May 2009 04:45 - #
This looks like a very useful library. Once Django 1.2 planning starts, I'd also love to see this discussed for the roadmap..