tips:pyramid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tips:pyramid [2015/08/05 18:37] – [bower] scipiotips:pyramid [2015/08/18 12:32] (current) – [yml] scipio
Line 107: Line 107:
 <code> <code>
 gunicorn --paste development.ini gunicorn --paste development.ini
 +</code>
 +
 +===== yaml =====
 +
 +Use yaml file as configuration container. See [[http://tzfpyramid-yml.readthedocs.org/en/latest/usage.html|here]]
 +
 +setup.py
 +<code>
 +requires = [
 +...
 +   'tzf.pyramid_yml'
 +....
 +</code>
 +
 +__init__.py
 +<code>
 +config.include('tzf.pyramid_yml')
 +</code>
 +
 +
 +*ini
 +<code>
 +yaml.location =  /lab/wega/wegasim
 +env = dev
 +</code>
 +
 +config.yml
 +<code>
 +configurator:
 +    serial_code : 'ABCD'
 +    serial.port : '/dev/ttyUSB3'
 +    serial.speed : 9600
 +    test.serial.port : '/dev/ttyUSB2'
 +    test.serial.speed : 9600
 +    wamp.router.url : 'ws://localhost:6001/ws'
 +    wamp.router.push : 'http://localhost:6001/push'
 +    wamp.realm : 'realm_sim'
 </code> </code>
  
  • tips/pyramid.1438792675.txt.gz
  • Last modified: 2015/08/05 18:37
  • by scipio