[three]Bean

`Quickstarting` a Pyramid app

Mar 06, 2011 | categories: python, pyramid View Comments

Quickstart! From scratch, we'll create a new Pyramid app from one of the included paster templates. We'll use the one that provides a sqlalchemy model. As we always should, we'll also lock everything down inside a virtualenv.

(Edit: This was revised to use the awesome virtualenvwrapper. You can and must use virtualenvwrapper.)

rjbpop@grossman ~/devel ()
 % mkvirtualenv --no-site-packages my-pyramid-project
(my-pyramid-project)rjbpop@grossman ~/devel ()
 % pip install --use-mirrors pyramid
(my-pyramid-project)rjbpop@grossman ~/devel ()
 % paster create -t pyramid_alchemy project-name
(my-pyramid-project)rjbpop@grossman ~/devel ()
 % cd project-name
(my-pyramid-project)rjbpop@grossman ~/devel/project-name ()
 % python setup.py develop
(my-pyramid-project)rjbpop@grossman ~/devel/project-name ()
% paster serve development.ini

Point your browser at http://localhost:6543 to see if the setup process completed okay.

View Comments
blog comments powered by Disqus