Tuesday, 27 August 2013

Is there a way to share common configuration using Paste Deploy?

Is there a way to share common configuration using Paste Deploy?

This is a pretty simple idea conceptually. Much of my configuration is
shared between a production and development server. Currently, these
settings are included in two separate ini files. It would be nice to DRY
this configuration with a common settings file.
I'm quite open to this happening in python or an an ini file (or perhaps a
third, yet-to-be-considered place). I don't like the idea of passing in a
large dict for %(var)s substitution, as it requires effectively renaming
all of the shared variables.
In my initial experiments with Paste Deploy, it demands a "main" section
in each ini file. So, I don't think I can just use a use =
config:shared.ini line. But that's conceptually close to what I'd like to
do.

No comments:

Post a Comment