Web2Py

Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2010-05-11 12:27:53
Size: 330
Editor: 158
Comment:
Revision 4 as of 2010-05-11 12:46:33
Size: 1225
Editor: 158
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
[[http://web2py.com|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." [[http://web2py.com|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 [[http://web2py.com/book|web2py book]] so that I can use it in my classroom.
Line 3: Line 3:
This describes how I installed and setup web2py in my home directory. This describes how I installed and setup web2py in my home directory.

  0. Download [[http://www.web2py.com/examples/static/web2py_src.zip|web2py_src.zip]].
  0. Open a terminal and run the following commands:
    * {{{$ mkdir lib}}}
    * {{{$ mkdir lib/python}}}
    * {{{$ mkdir bin}}}
  0. Add the following to the bottom of your `.bashrc` file: {{{
      PYTHONPATH=$HOME/lib/python

      export PYTHONPATH}}}
  0. Unzip the `web2py_src.zip` file (generating the `web2py` directory), and move `web2py` to your `lib/python` directory.
  0. 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}}}
  0. Run the following command from the terminal to install the `python-tk` package:
    * {{{$ sudo aptitude install python-tk}}}

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

Web2Py (last edited 2010-05-11 15:39:26 by 158)