Web2Py

Revision 4 as of 2010-05-11 12:46:33

Clear message

web2py is described on the web site as a "free and open source full-stack enterprise framework for agile development of fast, scalable, secure and portable database-driven web-based applications. Written and programmable in Python." I've begun reading the web2py book so that I can use it in my classroom.

This describes how I installed and setup web2py in my home directory.

  1. Download web2py_src.zip.

  2. Open a terminal and run the following commands:
    • $ mkdir lib

    • $ mkdir lib/python

    • $ mkdir bin

  3. Add the following to the bottom of your .bashrc file:

          PYTHONPATH=$HOME/lib/python
    
          export PYTHONPATH
  4. Unzip the web2py_src.zip file (generating the web2py directory), and move web2py to your lib/python directory.

  5. Create a file named web2py in your bin directory with the following contents:

          #!/usr/bin/env sh
    
          cd $HOME/lib/python/web2py
          python web2py.py
  6. Run the following command from the terminal to install the python-tk package:

    • $ sudo aptitude install python-tk