5.3 The Environment

Aspen incorporates the mode module, which uses the PYTHONMODE environment variable to model the application life-cycle through four deployment modes: debugging, development, staging, and production. This module is available to your applications at aspen.mode, and its API is documented in the "API" chapter, below.

Aspen itself adapts to the current PYTHONMODE. In debugging and development modes, Aspen will restart itself any time the following configuration files or any module source files change on the filesystem:

See Also:

mode
Aspen relies on this module to model the application life-cycle. It is available to your applications at aspen.mode

Aspen is copyright © 2006-2007 by Chad Whitacre and contributors, and is offered under the MIT license.