title: Pyramid: sending miscellaneous config to the application factory
body: <p>I have setup the Pyramid configuration file like this:</p>
  
  <pre><code>[app:main]
  ...
  
  [server:main]
  ...
  
  
  [memcache]
  # memcache config
  
  [zeromq]
  # zeromq xonfig
  </code></pre>
  
  <p>Now inside my <code>app_factory</code>, I want to get all the config -- not just the <code>app:main</code> section but also the <code>memcache</code>, <code>zeromq</code> and other possible sections.</p>
  
  <p>How should I do this.</p>
  
  <p>The reason I am separating the config into different sections is because my app uses lots of disparate services and I don't want to cobble all the config together into the <code>app:main</code> section.</p>
  
  <p>One way to do this is to manually pull the config into the application by reading the config file. Then you have to somehow know what mode (development or production) the app is running. Also, there's the overhead of parsing the config multiple times (because the paste-deploy will do it first).</p>
  
  <p>Is there a better and more elegant solution to this?</p>