An improved version of Mozilla's download load balancer Bouncer, with a user interface written in Django/Python.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
vendor @ 1ecf62b


An improved version of the Bouncer mirror management software.

Bouncer is a Mozilla project. The new admin backend was originally written by Frederic Wenzel (

Getting Started


You need Python 2.6. Also, you probably want to run this application in a virtualenv environment.

Run easy_install pip followed by pip install -r requirements.txt to install the required Python libraries.

git submodules

The list of known languages is provided by languages.json in the directory inc/product-details/json and imported as a git submodule. The source of the data is the Mozilla product-details library.

To initialize the submodule (or pull updates from it), run this from the tuxedo root directory:

git submodule update --init

Initial Database Setup

If you're installing a new copy of Bouncer, run ./ syncdb followed by ./ migrate (see "Database Migrations" below).

Database Migrations

I am using South to keep track of database migrations. ./ migrate will apply these migrations when necessary.

Upgrading an older version of Bouncer

If you are upgrading from an earlier version of Bouncer that isn't locale- aware yet, apply sql/bouncer-add-lang.sql first.

Then, apply sql/incremental.sql to bring the DB up to date.

Finally, run the following steps to initialize Django and South:

./ syncdb   # initialize django
# (answer "no" to the "add a new admin?" question)
./ migrate mirror 0001 --fake   # initialize South
./ migrate   # apply all existing migrations

Tuxedo API and mod_wsgi

There are multiple ways to deploy a Django project on a web server. If you want to use Apache with mod_wsgi, make sure to set it up so it passes HTTP Basic Auth credentials on to the application, otherwise the Tuxedo API won't work.

Why "tuxedo"?

In my silly mind, I chose to interpret "Bouncer" as "doorman" and subsequently decided that its new version should be codenamed like what fancy bouncers wear: a tuxedo.


This software is licensed under the Mozilla Tri-License:

Version: MPL 1.1/GPL 2.0/LGPL 2.1

The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the

The Original Code is tuxedo.

The Initial Developer of the Original Code is Mozilla.
Portions created by the Initial Developer are Copyright (C) 2010
the Initial Developer. All Rights Reserved.

  Frederic Wenzel <>

Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
in which case the provisions of the GPL or the LGPL are applicable instead
of those above. If you wish to allow use of your version of this file only
under the terms of either the GPL or the LGPL, and not to allow others to
use your version of this file under the terms of the MPL, indicate your
decision by deleting the provisions above and replace them with the notice
and other provisions required by the GPL or the LGPL. If you do not delete
the provisions above, a recipient may use your version of this file under
the terms of any one of the MPL, the GPL or the LGPL.