Code Monkey home page Code Monkey logo

django-voting2's Introduction

note

there are other, better maintained voting apps out there now.

django-voting2

This app is heavily derived from the django-voting app. which can be found here:

http://code.google.com/p/django-voting/

I need to create an overview file like this one:

http://django-voting.googlecode.com/svn/trunk/docs/overview.txt

This app is close to the original django-voting but improved in a few ways:

Support for more vote types.
I added support for many more votes types, easy changeable by editing voting/vote_types.py Now not only up and down votes but any kind of vote is supported.
No more raw sql
The original code contained raw sql. The newer django ORM has support for aggregation
More manager functions
I added more aggregation functions like get_controversial, which looks op voted objects which are have about the same amount of up and down votes.
many small code clean ups,
more consistent functions arguments, small but necessarily changes to the template tags to support more vote types.

TODO

if you find this code useful don't hesitate to let me know.

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.