4.3 The Environment

Aspen incorporates a 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 a configuration file or module source file changes on the filesystem.

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