GithubHelp home page GithubHelp logo

wyh / django-badger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla/django-badger

0.0 1.0 0.0 572 KB

django-badger is a Playdoh-biased reusable Django app for creating and awarding badges.

Home Page: http://badg.us/

License: BSD 3-Clause "New" or "Revised" License

django-badger's Introduction

django-badger

https://secure.travis-ci.org/lmorchard/django-badger.png?branch=master

Badger is a family of Django apps intended to help introduce badges into your project, to track and award achievements by your users. This can be used to help encourage certain behaviors, recognize skills, or just generally celebrate members of your community.

For more about the thinking behind this project, check out this essay: Why does Mozilla need a Badger?

The django-badger package is the core Badger app. It offers (or plans to offer) the following:

  • Basic badges, managed by the site owner in code and via Django admin.
  • Badge awards, triggered in response to signal-based events with code collected in per-app badges.py modules.
  • Views and models that enable users to create their own badges and nominate each other for awards.
  • Meta-badges, for which an award is automatically issued when a complete set of prerequisite badge awards have been collected.
  • Progress tracking, for which an award is issued when a user metric reaches 100% of some goal, or in response to some other custom logic.
  • Activity streams of badge awards.

If you want to federate or share badges, you should check out the Mozilla Open Badges project.

Installation

  • TBD, see badg.us for an example site setup
  • pip install git://github.com/lmorchard/django-badger.git#egg=django-badger

Settings

  • TBD, see badg.us for an example site setup
  • TBD, see badger/tests/badger_example/badges.py for an example.

Templates

There are two sets of templates in the templates folder. The templates found in badger_playdoh are intended for use with Playdoh sites, while those found in badger_vanilla are meant for plain Django sites.

You'll need to make a copy of one of these folders into a directory named templates/badger at the top level of your project. Then, you can customize the templates as necessary for your site.

Creating badges

  • TBD, see badger/tests/badger_example/badges.py for an example.

Awarding badges

  • TBD, see badger/tests/badger_example/badges.py for an example.

Testing

  • TBD, see badg.us for an example site setup

django-badger's People

Contributors

askvictor avatar huxley avatar lmorchard avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.