Skip to content


Subversion checkout URL

You can clone with
Download ZIP
This projects has been retired.
JavaScript Python Shell
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ffdemo Do not use spaces in internal window names, because IE chokes on it. …


Firefox Mark Up is a Django-based web application...

Getting Started


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

To install virtualenv (if you don't have it already):

easy_install virtualenv

And pip (package manager):

easy_install pip

Start and activate the virtualenv:

virtualenv --distribute --no-site-packages ./ffenv
source ./ffenv/bin/activate

Prepare you development environment:

pip install -r requirements/dev.txt -r requirements/compiled.txt

Create a database and be sure to note the name then make a copy of called and update your database settings

Sync your db:

python ffdemo/ syncdb

Run the migrations

python ffdemo/ migrate

Start your dev server:

python ffdemo/ runserver

Things to know

Any time you open a new terminal window to work on this project, before to run:

source ffenv/bin/activate

This sets up the virtual environment that has all the right versions of everything for the app

We're using South for migrations on any django apps in the project. Learn more!

Database Migrations

South is used for migrations, so to sync the db, run syncdb

and to run the migrations. migrate

More info about South:

- See if you can import south and yaml using ./ shell
- If you can't, install both independently:
    - easy_install South
    - easy_install

    Setting up with a new database:
        - After you create the database, validate and sync up the models as per above, then:
            - ./ schemamigration markup --initial
            - ./ migrate markup
        - Thereafter:
            - ./ schemamigration markup --auto
            - ./ migrate markup

    Setting up from an existing database:
        - ./ syncdb
        - ./ convert_to_south markup

    If at any point you need to blow this out and start over, remember to remove the migrations dir from the app root

Generate Invites

Run the invite-generation script. takes two vars: number of invites to generate, and type of invites to generate. invite-types are 't' for translator, or 'c' for contributor.

for 5 translator invites, run generate_invites 5 t

for 10 contributor invites, run generate_invites 10 c

User management

The app uses Django's [user account management][django-users] commands:

./ createsuperuser  # to create a new moderator
./ changepassword bob  # to change bob's password
# Deleting users is currently only possible through the database.


For production environments, uncomment the following in settings:

# CACHE_BACKEND = 'caching.backends.memcached://localhost:11211?timeout=500'


Also make sure your webserver serves SVG files with the right MIME type. In Apache, do this:

 AddType image/svg+xml svg

Javascript (Minification)

Jim is used for managing the JavaScript in Mozilla Mark Up. More information is available here.


The ffdemo/locale directory is kept in SVN. After checking out from git, you want to separately check out that dir like this:

cd ffdemo
svn checkout

Markup uses the tower library for string extraction. To extract strings from template files, run something like:

./ extract
./ verbatimize --rename
./ merge

For more information, consult the tower docs.

To compile .po files into .mo, run:

cd locale
./ .


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 Mozilla Mark Up.

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


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.

Something went wrong with that request. Please try again.