How to add a user ratings feature in djnago application?

93 views
Skip to first unread message

learn code

unread,
Jun 13, 2020, 3:07:05 PM6/13/20
to Django users
Hello Everyone,

Can anyone tell me how to add a star rating feature in Django application?

Rupesh Dahal

unread,
Jun 13, 2020, 3:22:52 PM6/13/20
to django...@googlegroups.com
You can save rating on database and show them with the help of JS.

On Sun, Jun 14, 2020 at 12:52 AM learn code <learni...@gmail.com> wrote:
Hello Everyone,

Can anyone tell me how to add a star rating feature in Django application?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ec01e0d3-78d3-4bd4-9dc0-ff9ec0da1866o%40googlegroups.com.

learn code

unread,
Jun 13, 2020, 3:32:13 PM6/13/20
to django...@googlegroups.com
Thank you for your reply.
Can you tell me more details how can I do that?


Gs_1001

unread,
Jun 13, 2020, 5:29:27 PM6/13/20
to Django users
Hey,

A rating feature for a peer reviewed books website would look somewhat like:
- A books model having "no_of_reviews" and "rating" field

Every time a user rates a book no_of_reviews field would be incremented and rating field would be updated.

If you think I somehow missed the point then please let me know.

learn code

unread,
Jun 15, 2020, 9:23:06 PM6/15/20
to django...@googlegroups.com
Hi,

Thank you for your reply,sorry ,still I didn't understand how to add ratings. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

Kelvin Sajere

unread,
Jun 15, 2020, 9:28:14 PM6/15/20
to django...@googlegroups.com
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPUBRGXuHCwuyZFzwQvdcYdYeofAjcrnwqGkigMwCj109TMnsw%40mail.gmail.com.


It seems you would like something already done, rather than the concept of having to construct it yourself.. If that’s the case, then just use a ready made app. Django star ratings. Read and understand the documentation, and you are good to go. I used this in one of my app.

--
KeLLs

learn code

unread,
Jun 16, 2020, 1:49:29 AM6/16/20
to django...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages