What do you want to do now?
Read about our services Review our portfolio

mod_python Framework

We've been using Python, MySQL, Apache and mod_python for some time now and have developed a framework which makes development easier. This framework takes care of:

  • templating (using Cheetah)
  • querying MySQL (using Manager objects)
  • sending emails
  • debugging (to Apache log or stdout)
  • users and security

We're releasing the framework in the hope that it will be useful and to help build the community of mod_python developers. It is licensed under the GPL. If you would like to discuss alternative licensing please contact us.

Download a zip of the framework.

Please let us know how you get on. Comments, corrections, criticisms and improvements will be very appreciated.

Installation instructions

These are very brief... they will be improved soon.

We assume that you have the following software installed and configured:

  • Apache 2+
  • Python 2.4+
  • MySQL 4+
  • mod_python
  • mysqldb

Uncompress the bright.zip file and configure Apache as directed by the file /resources/PRIVATE/apache.conf (e.g. with a virtual host). You will need to change the paths in this file.

Create a database using the schema in the file /resources/PRIVATE/bright.sql

Edit /do/bright/AppSettings.py for your local setup:

  • db_name = 'bright'
  • db_user = 'root'
  • db_password = ''
  • site_root = '/Library/WebServer/bright/'

Restart Apache and browse to the site.