Archive | Pylons RSS feed for this section

ImportError: No module named pysqlite2

Currently my favorite web app environment includes:

CentOS 5.5
Python 2.6 (built from source)
Pylons 1.0 (w/ SQLAlchemy 0.5.8)
nginx

Whenever I setup a new environment, and execute “paster serve –reload development.ini” for the first time, I always get a stack trace from SQLAlchemy that ends with the following error message:

ImportError: No module named pysqlite2

And it always takes me a [...]

Deploying a Pylons App to Production, Step-by-Step (Part 2 of 2)

In Part 1 of this tutorial, I described how to prepare Nginx (along with Apache) to serve a production Pylons app. In this article, I walk you through packaging and installing your application.
Packaging Your Pylons App
The official Pylons book offers a lengthy section on how to package your application. However, I feel that [...]

Deploying a Pylons App to Production, Step-by-Step (Part 1 of 2)

I think there’s a very good reason why the “Deployment” chapter in the official Pylons book is listed in section entitled “Expert Pylons.” Deploying a Pylons app into a production environment can be a real hair-puller for the folks coming from the PHP or ASP/ASP.Net worlds.
Like most everything else about Pylons, you have a [...]