Questions tagged [django-ratings]
14 questions
3
votes
1 answer
django simple ratings, too much query
I'm using django-simple-ratings on my project. I hook the ratings to my Post app, so users can vote up/down and then order it by the score. Pretty much what i want is included on the ratings app. There's this page where i need to list all of the…

Faris Nasution
- 3,450
- 5
- 24
- 29
1
vote
1 answer
how to show only starts in django star ratings
I am using django-star ratings and its working fine but along with stars its also showing additional details. I am just writing
{% ratings object 18 18 %}
in my HTML and its showing me starts but also
Average: 4.50
Rating Count: 2
You Rated: Not…

Pankaj Sharma
- 2,185
- 2
- 24
- 50
1
vote
1 answer
Django-ratings CommandError for models
i installed an app django-ratings. I want to syncdb, but here is my error:
djangoratings.vote: 'user' defines a relation with the model 'auth.User',
which has been swapped out. Update the relation to point at settings.AUTH_USER_MODEL.
Iam using…

juree
- 253
- 2
- 12
1
vote
1 answer
I can't make Django-ratings work
I'm using this app of django : 'Django-ratings', and I'm working with it for few days now, but I can't make it work, I don't know what's the problem in my code.
I added 'djangoratings', to my INSTALLED_APPS, then I added the field rating =…

user3436239
- 13
- 4
1
vote
1 answer
Django-ratings error: "rating value must be a Rating instance, not '100"?
Im trying to order a set of model objects by rating with Django-ratings app. I've built a order_by function in my view which works fine but not when i comes to the rating field where im getting this error: "rating value must be a Rating instance,…

user3199840
- 525
- 2
- 13
- 35
0
votes
0 answers
Model require to add star-ratings class
I added django-star-ratings to my Django project, so I have in models.py this field:
class Post(models.Model):
rating = models.ForeignKey('star_ratings.Rating')
and in template:
{% ratings item %}
So when I add a new post, there appears this…

Olya Bogdanova
- 59
- 1
- 1
- 5
0
votes
1 answer
django-ratings error: Unknown column 'resources_resources.ratings_votes' in 'field list'
After installing and syncing db, i added this to my model:
rating = RatingField(range=5)
and got the error:
Unknown column 'resources_resources.rating_votes' in 'field list'
Docs says: "The way django-ratings is built requires you to attach a…

user285943
- 11
- 1
0
votes
1 answer
How to access cookie and IP fields in DjangoRatings?
I'm using the djangoratings library found here and I have everything running and set up. In my views.py file I have a button which executes this line of code when pushed:
myinstance.rating.add(score=1, user=request.user,…

EazyC
- 809
- 1
- 10
- 30
0
votes
0 answers
How to Limit Ratings (or anything else in Django) by IP?
I am using DjangoRatings for a web app which allows anonymous ratings from registered as well as nonregistered users. After I set the IPLimit integer in the DjangoRatings settings.py file, everything works fine; however, when I exceed the number of…

EazyC
- 809
- 1
- 10
- 30
0
votes
2 answers
How to use Django-ratings with bootstrap-rating-input
Here goes another star rating question. I want to use bootstrap-rating-input to input rating value (1 to 5) and have django-ratings save the rating to the database. Although I'm a little green with javascript, I really want users to be able to vote…

vt2424253
- 1,387
- 4
- 25
- 39
0
votes
1 answer
Django-ratings : 'RatingField' object has no attribute 'add'
I tried using the example that they gave on the documentation of this app.
Their example:
And adding votes is also simple:
Ubicacion.rating.add(score=1, user=request.user, ip_address=request.META['REMOTE_ADDR'])
but it returns me this error:
…

user3436239
- 13
- 4
0
votes
1 answer
Django-ratings - 404 error "Invalid model or app_label"? Why?
Can someone help me with Django-ratings app? I'm trying to post a rating but the app doesn't seem to do anything. What part am I missing here? Really hard to find examples out there..
My function looks like this (jquery Raty…

user3199840
- 525
- 2
- 13
- 35
0
votes
0 answers
Django form does not show for django-generic-ratings
I went through the django-generic-ratings tutorial, but I am not able to see the form.
I registered my model as following,
from ratings.handlers import ratings
from ratings.forms import SliderVoteForm
ratings.register(Restaurant, score_range=(1,…

Emmet B
- 5,341
- 6
- 34
- 47
0
votes
1 answer
Weird error message with django-ratings
I'm getting a strange error message with [django-ratings][1]. The following is in my urls.py:
url(r'^rate/(?P\d+)/(?P\d+)/', AddRatingFromModel(),{
'app_label': 'spiceapp',
'model': 'spice',
'field_name':…

user1328021
- 9,110
- 14
- 47
- 78