Skip to main content

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

Metadata

Release files for stars-rating 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stars-rating 0.1
File Size Uploaded Provenance Actions
stars-rating-0.1.tar.gz 27.5 kB Without provenance Details for stars-rating-0.1.tar.gz

Release files / stars-rating-0.1.tar.gz

Download URL stars-rating-0.1.tar.gz
Size 27.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d0cc01dfb4fccc3000df1718ae710b7129de545b8940443a9a0b955c96a8a5b3
BLAKE2b-256 checksum
How to use checksums
94b4d3912cef2ad80b737e20cab3f2e338a24cef0fe64ca304feed5c82962b37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for stars-rating 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page