Aspen

A Python web framework that makes the most of the filesystem.
Simplates are the main attraction.

Configuration

Aspen websites can be configured consistently from the environment and keyword arguments. For each of the following there is an environment variable like ASPEN_NAME and a keyword argument to `aspen.website.Website`. Here is an example configuration:

name example value
base_url http://www.example.com
changes_reload yes
charset_dynamic ISO-8859-1
charset_static windows-1252
indices index.html, README
list_directories False
logging_threshold 1
media_type_default text/plain
media_type_json application/json
project_root /usr/local/mysite
show_tracebacks True
colorize_tracebacks True
www_root /usr/local/mysite/www
unavailable 0

Please refer to the website page for defaults.

Home