目录

Mozilla Badges

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.

Setup

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.

License

This software is licensed under the New BSD License. For more information, read the file LICENSE.

邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号