Web2Py Absolute trouble Shooter

Do you want develop web applications in a fast, prototype based way using Python?

Follow us and learn how to use web2py….

Step 1: Python 2.6 proper setup

On Linux be sure to install sqlite development library; the following command will help on RedHat:

sudo apt-get install sqlite-devel

for the yum variant see here http://stackoverflow.com/questions/233320/cannot-import-sqlite-with-python-2-6

Install python 2.6, this will avoid the need of additional libraries.

You will also need openssl, so if you haven’t  it issue commands like

sudo apt-get install openssl

and be sure to get also the python wrapper pyOpenSSL hosted here

We happly compiled pyOpenSSL from sources

For more tips and tricks look also at this recipe about Apache Setup, if you need it.

Step 2: Download web2py

To get more information on web2py read the online book

Step 3:Customize “options_std.py”

It is very important to reduce typing, and the options file of web2py is a true solution on this side.

the only thing you need after customiziong options_std is

./web2py.py -L options_std.py