Mozilla Badges is a badge service based on Playdoh, a Django deriviative. This is currently a new development, but you can find the live badges.mozilla.org code elsewhere on GitHub.
Basic setup instructions:
git submodule update --init --recursive
virtualenv --no-site-packages venv
. ./venv/bin/activate
pip install -r requirements/compiled.txt
pip install -r requirements/dev.txt
cp mozbadges/settings/local.py-dist mozbadges/settings/local.py
Now edit mozbadges/settings/local.py
and choose a value for SECRET_KEY
. Adjust the settings under DATABASE
as appropriate for your mysql setup. Uncomment the entry under HMAC_KEYS
and change the secret as desired. Uncomment the SESSION_COOKIE_SECURE
line if you are not using HTTPS.
Create a new mysql schema with a name corresponding to the NAME
you chose in the local.py
file.
./manage.py syncdb
# follow prompts to set up a django superuser
./manage.py runserver 0.0.0.0:8000
Your server should now be accessible at localhost:8000.
This software is licensed under the New BSD License. For more
information, read the file LICENSE
.