|Other languages : français||…|
web.py recommends the following software for production servers:
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:
- lighttpd [BSD] (doc) through flup’s fastcgi [BSD] (
- Apache [Apache] through (mod_wsgi) [Apache]
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. (
- mysql [GPL] (doc) with MySQLdb [CNRI] (doc) as the python client (
- sqlite [Public domain] (doc) with pysqlite as python client (
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.
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)
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.