This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Django Kaleidos Rate is a django application for rate objects.

Configuration

Configure the app in your setting INSTALLED_APPS:

INSTALLED_APPS = [
   ...
   krate,
   ...
]

DBRateHandler configuration

configure the dbratehandler, for example:

INSTALLED_APPS = [
   ...
   krate.ratehandlers.dbratehandler,
   ...
]

Configure the rate handler on settings.py, for example:

KRATE_RATE_HANDLER = "krate.ratehandlers.dbratehandler.DBRateHandler"

If you want to have an copy of the average rate stored in the models add the KRateableMixin to your models, for example:

from krate.ratehandlers.dbratehandler.models import KRateableMixin

class MyModel(models.Model, KRateableMixin):
    ... # My model definition...

If you want to show and manage the valorations of the objects in the admin panel add a new inline to your models admin classes, for example:

from django.contrib.contenttypes.generic import GenericTabularInline
from krate.ratehandlers.dbratehandler.models import ObjRate, ObjRateAggregate

class ObjRateInline(GenericTabularInline):
    model = ObjRate

class ObjRateAggregateInline(GenericTabularInline):
    model = ObjRateAggregate

class MyModelAdmin(admin.ModelAdmin):
    model = models.MyModel
    inlines = [MyOtherInlines, ...,  ObjRateAggregateInline, ObjRateAggregateInline]

Usage

Now you can use rate_object in your views to store the rate from users, and use the {% krate object %} and {% mykrate request_or_user object %} to get the average rate, and my own rate.

Release History

Release History

0.0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-krate-0.0.1.tar.gz (6.2 kB) Copy SHA256 Checksum SHA256 Source Jun 10, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting