User Tools

Site Tools


tips:pyramid

**This is an old revision of the document!**

Table of Contents

Pyramid

classic

Environment

library

BASE=/lab/ztl
cd $BASE

virtualenv lib
. lib/bin/activate
pip install pyramid

library activation in active shell (for starting project and running)

. lib/bin/activate

start project ztlbrain

pcreate --scaffold alchemy ztlbrain
cd ztlbrain
python setup.py develop

initialize db

initialize_ztlbrain_db development.ini

run

pserve development.ini --reload

bower

Bower can help to install javascript client side libraries, like angularjs.

Install npm and bower at system level

sudo apt-get install npm
sudo npm install -g bower

Install pyramidbowerstatic and add it to setup.py</del> <code> pip install pyramidbowerstatic </code> Install module (library) <code> bower install angular-bootstrap </code> ===== aio ===== library <code> BASE=/lab/ztl cd $BASE virtualenv lib . lib/bin/activate pip install aiopyramid </code> library activation in active shell (for starting project and running) <code> . lib/bin/activate </code> start project ztlbrain <code> pcreate –scaffold aio_websocket ztlbrain cd ztlbrain python setup.py develop </code> initialize db <code> initializeztlbraindb development.ini </code> run <code> gunicorn –paste development.ini </code>

tips/pyramid.1438786750.txt.gz · Last modified: by scipio