config = appconfig('config:development.ini', 'myapp', relative_to='.')
if config['env'] == 'production':
    api_endpoint_uri = 'http://api.external.com/?{0}'
How to get Registry().settings during Pyramid app startup time?