Using web2py with postgreSQL

Standard

You must to install the packages:

  • python-dev
  • libpq-dev
We will use the PsycoPg which is the most popular PostgreSQL adapter for Python.
Download the PskycoPg.
At psycopg directory:
$python setup.py install
At db.py, you can use:
    db = DAL(‘postgres://postgres:postgres@localhost/name’)