I'd suggest the use of ``from pyramid.settings import asbool`` http://docs.pylonsproject.org/docs/pyramid/en/latest/api/settings.html#pyramid.settings.asbool