Recommended Setup
Other languages : français | … |
Summary
web.py recommends the following software for production servers:
Web Servers
Webpy has an internal web server, but it should be used for development only. For production, a more robust server should be used, such as one of these:
- Nginx
- Apache [Apache] through (mod_wsgi) [Apache]
Databases
Webpy does not require a database to run. It does, however, support using the following databases:
- postgresql [BSD] (doc) with psycopg2 [BSD] (doc) as the python client. (
easy_install psycopg2
) - mysql [GPL] (doc) with MySQLdb [CNRI] (doc) as the python client (
easy_install MySQL-python
) - sqlite [Public domain] (doc) with pysqlite as python client (
easy_install pysqlite
).
Connection Pooling
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.
Templates
Webpy has its own template system which allows users to let untrusted users write templates using this, and use python-like syntax within templates.
- template.py [built-in] (doc)
Jinja2 is more popolar and feature rich, we strongly recommend Jinja2.