Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
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 %}
.. NOTE:: show_stars(context, obj, field_name='rating', big_star=True, disabled=False, extra_class='', extra_success='')
show_stars template tag displays clickable stars to vote for content.
This application contains static files from:
Written by the development team of Arpaso company: http://arpaso.com
FAQs
Django application to rate objects & stars UI
We found that stars-rating demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.