Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 42 lines (24 sloc) 2.428 kb
979211c irrelative
anonymous authored
1 ---
2 layout: default
b27f79e irrelative
anonymous authored
3 title: Recommended Setup
979211c irrelative
anonymous authored
4 ---
5
b27f79e irrelative
anonymous authored
6 # Recommended Setup
218d861 irrelative
anonymous authored
7
463c0dc @irrelative Add more accurate web server options, and deployment within webserver…
irrelative authored
8 web.py recommends the following software for production servers:
d965c46 irrelative
anonymous authored
9
10 ##Web Server:
463c0dc @irrelative Add more accurate web server options, and deployment within webserver…
irrelative authored
11
b5d361f @irrelative Adding sqlite to databases.
irrelative authored
12 Webpy has an internal web server, but it should be used for development only. For deployment, a more robust server should be used, such as one of these:
463c0dc @irrelative Add more accurate web server options, and deployment within webserver…
irrelative authored
13
14 * [lighttpd](http://www.lighttpd.net/download/) [BSD] [(doc)](http://trac.lighttpd.net/trac/wiki/#ReferenceDocumentation) through [flup's fastcgi](http://trac.saddi.com/flup) [BSD] (`easy_install flup`)
15 * [Apache](http://www.apache.org/) [Apache] through [(mod_wsgi)](http://code.google.com/p/modwsgi/) [Apache]
d965c46 irrelative
anonymous authored
16
17 ##Databases:
b5d361f @irrelative Adding sqlite to databases.
irrelative authored
18
19 Webpy does not require a database to run. It does, however, support using the following databases:
20
47979c8 anand
anonymous authored
21 * [postgresql](http://www.postgresql.org/download/) [BSD] [(doc)](http://www.postgresql.org/docs/) with [psycopg2](http://initd.org/pub/software/psycopg/) [BSD] [(doc)](http://www.initd.org/tracker/psycopg/wiki/PsycopgTwo) as the python client. (`easy_install psycopg2`)
463c0dc @irrelative Add more accurate web server options, and deployment within webserver…
irrelative authored
22 * [mysql](http://dev.mysql.com/downloads/mysql/5.0.html) [GPL] [(doc)](http://www.mysql.org/doc/) with [MySQLdb](http://sourceforge.net/project/showfiles.php?group_id=22307) [CNRI] [(doc)](http://mysql-python.sourceforge.net/MySQLdb.html) as the python client (`easy_install MySQL-python`)
b5d361f @irrelative Adding sqlite to databases.
irrelative authored
23 * [sqlite](http://www.sqlite.org/) [Public domain] [(doc)](http://www.sqlite.org/docs.html) with [pysqlite](http://code.google.com/p/pysqlite/) as python client (`easy_install pysqlite`).
33dfa3f anand
anonymous authored
24
d965c46 irrelative
anonymous authored
25 ##Connection Pooling:
6593c11 @irrelative Updating recommended setup
irrelative authored
26
27 For high traffic sites, connection pooling allows Webpy to keep multiple database connections open, typically allowing faster access from the database. This is optional, but available as a scaling tactic.
28
463c0dc @irrelative Add more accurate web server options, and deployment within webserver…
irrelative authored
29 * [DBUtils](http://www.w4py.org/downloads/DBUtils/) [CNRI] [(doc)](http://www.webwareforpython.org/DBUtils/Docs/UsersGuide.html) (`easy_install DBUtils`)
33dfa3f anand
anonymous authored
30
d965c46 irrelative
anonymous authored
31 ##Templates:
6593c11 @irrelative Updating recommended setup
irrelative authored
32
33 Webpy has its own template system which allows users to let untrusted users write templates, and use python-like syntax within templates.
34
51df264 @anandology edit
anandology authored
35 * template.py [built-in] [(doc)](/docs/0.3/templetor)
36
d965c46 irrelative
anonymous authored
37 ##User Input:
6593c11 @irrelative Updating recommended setup
irrelative authored
38
39 Markdown allows Webpy users to write text which gets converted to HTML on page display. It isn't necessary, but is the recommended way to generate formatted HTML from user input.
40
41
5e84838 replace Anand post
nux authored
42 * [python-markdown](http://sourceforge.net/project/showfiles.php?group_id=153041) [BSD] [(doc)](http://www.freewisdom.org/projects/python-markdown/)
Something went wrong with that request. Please try again.