Sahana Eden


Sahana Eden is a highly configurable system that can be adapted to many different needs and situations. If you've taken the time planning your project and have answered the questions posed in the "Planning a Deployment" section, you are now simply looking for where to enter the answers.

Configuration through the web interface

At the moment only some settings, like SMS, email inbox and Twitter, are editable through the Web UI. Future plans are to add more configuration settings through the Web UI but for now most configuration options require editing text files.

Configuration through text files

Many configuration options can be changed by editing models/ This consists of sections of Python code where settings for a particular component of the system can be changed. Most of the changes take effect immediately after saving the file. For a production environment then the system would need to be recompiled.

models/ has to be edited before using Sahana Eden. Once you have edited models/, change the FINISHED_EDITING_CONFIG_FILE variable  to True.

There are comments placed next to the options which are generally self-explanatory in nature. Users must not change the variables (or their names), they just need to change their values to configure the instance.

The following sections of models/ are explained in more detail:

Database Settings

It is recommend that production systems use PostgreSQL or MySQL rather than the default SQLite. For these databases it is more secure to provide the application with a database account with minimal privileges.

This section of the models/ file can be used to configure settings like:

  • Database Host: The server where your database is hosted
  • Database Name: The name of the database being used
  • Username: The username that has been assigned to the user for use with Eden
  • Password: Password assigned to the user
  • Port: Port at which the database service is available. Set to None to use the default setting

Authentication Settings

Administrators can use these settings to implement security policies and to make sure that there is no unauthorized access or data manipulation in the system. These settings are related to creating the first user account of the system and determining how users register and access the system.

Base Settings

Users can configure the system name, the public URL of the system and data pre-population in this section of models/

One of the most important system settings would be the selection of the template as this can completely alter how Sahana operates as well as it's look & feel. A list of available templates is in the folder private/templates. Any template setting can be over-ridden within for further fine-tuning as-required.

One of these settings is database pre-population. Users can determine if the database will be pre-populated with sample data or not.

Changing the database migration setting to False in production will lead to a performance gain. Migration tries to alter the SQL database schema to match that expected in the code. This works very well for simple cases, but may result in loss of existing data for complex cases, so should be applied with care to Production servers.

Web2Py supports automatic migration, but having this enabled all the time does lead to reduced performance, so enable migration only when necessary.

Mail Settings

Sahana Eden can be configured to use a email service for messaging. This section can help you to set up things like the outbound email server and sender address. Note: Until the Sender address is specified, the system will be unable to send emails!

Frontpage Settings

Sahana Eden has a dynamic frontpage with a capability to display RSS or Twitter feeds. You can change certain aspects of the landing page of the application in the frontpage settings section of the code.

Settings in this section can be used to change which RSS and Twitter feeds are subscribed to and displayed on the front page of the application. Use the settings in the Twitter section in models/ if you want to setup another Twitter account.

Module Specific Settings

Some settings for the Request Management, Inventory Management and Human Resource Management modules can be accessed here. These settings would generally be very specific to the needs of a certain deployment.

Enabling/Disabling Modules

Sahana Eden supports a range of modules that can be enabled or disabled to support different deployments. Disabling a module is as simple as commenting it in the code (not just the name, the entire key-value mapping). Comments in Python are preceded by the # symbol. All the text in a line that comes after a # is ignored.

The module list in this file is what appears in the module menu on the front page. All the modules that are disabled here do not appear in that menu.

The core modules Home (default), Administration(admin), Map (gis), Person Registry (pr) and Organization Registry (org) cannot be disabled. This is also pointed out in the relevant section in models/ All the other modules can be enabled or disabled as required by the deployment.

For instance, consider the Shelter Registry (the cr module in models/ The following code section applies to the Shelter Registry:

("cr", Storage(
    name_nice = T("Shelter Registry"),
    #description = "Tracks the location, capacity and breakdown of victims in Shelters",
    restricted = False,
    module_type = 10,

To disable this module, just make sure that each line in this section starts with a # symbol:

#("cr", Storage(
#name_nice = T("Shelter Registry"),
#description = "Tracks the location, capacity and breakdown of victims in Shelters",
#restricted = False,
#module_type = 10,

The module is now disabled and will not show in the menus of the application.
For more information, you can visit