Skip to main content

Django application to rate objects & stars UI

Project description

Rating of content with stars UI

Usage

models.py:

from django.db import models
from djangoratings.fields import RatingField
from rating.models import RatingBase


class MyModel(models.Model, RatingBase):
    ...
    rating = RatingField(range=10, allow_anonymous=True, can_change_vote=True)
    rating_field_names = ('rating',)

settings.py:

RATINGS_VOTES_PER_IP = 3 # or whatever

urls.py:

(r'^stars/', include('rating.urls'))

template.html:

{% show_stars object "rating" 0 %}

License note

This application contains static files from:

Written by the development team of Arpaso company: http://arpaso.com

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stars-rating-0.1.tar.gz (27.5 kB view details)

Uploaded Source

File details

Details for the file stars-rating-0.1.tar.gz.

File metadata

  • Download URL: stars-rating-0.1.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for stars-rating-0.1.tar.gz
Algorithm Hash digest
SHA256 d0cc01dfb4fccc3000df1718ae710b7129de545b8940443a9a0b955c96a8a5b3
MD5 54b7caf658d00386e4de83c59546efc9
BLAKE2b-256 94b4d3912cef2ad80b737e20cab3f2e338a24cef0fe64ca304feed5c82962b37

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page