Check out the code from the github project:
git clone git://github.com/mozilla/django-browserid.git
cd django-browserid
Create a virtualenv (the example here is with virtualenvwrapper) and install all development packages:
mkvirtualenv django-browserid
pip install -r requirements.txt
Here is how to run the test suite:
fab test
Here is how to build the documentation:
make -C docs/ html