Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tips:pyramid [2015/08/04 12:16] – [bower] scipio | tips:pyramid [2015/08/18 12:32] (current) – [yml] scipio | ||
---|---|---|---|
Line 47: | Line 47: | ||
</ | </ | ||
- | Install | + | Install |
< | < | ||
- | pip install | + | # cd < |
+ | bower install | ||
</ | </ | ||
- | Install module (library) | + | Libraries: |
+ | * angular | ||
+ | * angular-bootstrap | ||
+ | * angular-wamp | ||
+ | * autobahn | ||
+ | * bootstrap | ||
+ | * jquery | ||
+ | * leafelet-bouncemarker | ||
+ | * leaflet | ||
+ | * Leaflet.label | ||
+ | |||
+ | In __init__.py | ||
< | < | ||
- | bower install ui-bootstrap | + | config.add_static_view(' |
</ | </ | ||
+ | In template | ||
+ | <code html> | ||
+ | <link href=" | ||
+ | <script src=" | ||
+ | <script src=" | ||
+ | <script src=" | ||
+ | </ | ||
===== aio ===== | ===== aio ===== | ||
Line 89: | Line 107: | ||
< | < | ||
gunicorn --paste development.ini | gunicorn --paste development.ini | ||
+ | </ | ||
+ | |||
+ | ===== yaml ===== | ||
+ | |||
+ | Use yaml file as configuration container. See [[http:// | ||
+ | |||
+ | setup.py | ||
+ | < | ||
+ | requires = [ | ||
+ | ... | ||
+ | ' | ||
+ | .... | ||
+ | </ | ||
+ | |||
+ | __init__.py | ||
+ | < | ||
+ | config.include(' | ||
+ | </ | ||
+ | |||
+ | |||
+ | *ini | ||
+ | < | ||
+ | yaml.location = / | ||
+ | env = dev | ||
+ | </ | ||
+ | |||
+ | config.yml | ||
+ | < | ||
+ | configurator: | ||
+ | serial_code : ' | ||
+ | serial.port : '/ | ||
+ | serial.speed : 9600 | ||
+ | test.serial.port : '/ | ||
+ | test.serial.speed : 9600 | ||
+ | wamp.router.url : ' | ||
+ | wamp.router.push : ' | ||
+ | wamp.realm : ' | ||
</ | </ | ||