The pyramid-iniherit package enables pyramid configuration INI file inheritance via the "iniherit" package. See iniherit for documentation on how to use INI file inheritance.
$ pip install pyramid-iniherit
To be able to use %inherit
-enabled INI files, do the following:
Use
i-pserve
instead ofpserve
(same goes for pshell, proutes, pviews, ptweens, prequest, pscheduler, and alembic).Add this line before you import any pyramid, paster, or other server application module (such as in your WSGI loader):
# add support for inherited INI files import pyramid_iniherit.install
That's it!