Web2py‎ > ‎

Install

Web2py isn't installed, per se. The framework itself is a zip file that gets unzipped on your local machine. Then you use web2py's great wizards to create new applications, or create them manually within your project's applications directory. 

gen-web2py-project.sh generates a new web2py project in your projects directory (defined by virtualenvwrapper's WORKON_HOME), the current directory, or a directory of your choice. 

Download Script

Features

  1. No manual downloading.
  2. No manual unzipping.
  3. Generates a "best practice" folder structure.
  4. Generates a "best practice" .gitignore file.

Use

To create a new web2py project named awesomeapp

./gen-web2py-project.sh awesomeapp

To create a new git repository with a .gitignore that ignores sessions, databases, and other large web2py artifacts: 

cd $WORKON_HOME/awesomeapp
git init project

And to run web2py: 

cd $WORKON_HOME/awesomeapp/project/src
python2.5 web2py.py
Č
ċ
ď
gen-web2py-project.sh
(7k)
Matthew Norris,
Oct 17, 2011 8:11 PM