AlterEgo
old web2py blog
Useful Links
List all entries
Book
Interactive Examples
F.A.Q.
Free Applications
Plugins
Recipes
Demo of Admin Interface
Semantic web extension
Some of the information here may be outdated, please check the book instead
Edit page
Title:
Security Code:
Body:
(use
this
wiki markup)
CGI scripts are slow because they require loading the python interpreter in memory every time a request arrives; nevertheless there may be reasons to run web2py as a CGI script. For example, you have to if you use the Google app engine. Another example is if you do not manage the web server and need to install the script in your own user space. In order to run web2py as a CGI script just call the cgihandler.py in the main web2py folder. You may need to add a first line like #!/usr/local/bin/python2.5 pointing to the local interpreter, follower by import os; os.chdir('/home/you/web2py/') so that web2py knows in which folder it is located.
© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by
web2py
- design derived from a theme by
the earlybird
The content of this book is released under the
Artistic License 2.0
- Modified content cannot be reproduced.