Django-Poll-App icon indicating copy to clipboard operation
Django-Poll-App copied to clipboard

A small feature

Open kingc2022 opened this issue 2 years ago • 3 comments

A small feature

I think you can add a small feature about:

The user who initiated the vote can view the vote in real time
Users who have voted can view the vote in real time

Thank you very much!

kingc2022 avatar Jun 17 '22 14:06 kingc2022

Hi, Sorry for asking, but by real time, you mean like a progress bar and the voting counter being increased while other users keep voting?

brunorabelo avatar Jul 13 '22 13:07 brunorabelo

Hi, I mean in real time,

Administrators can view vote counts even if they have not voted.
Ordinary users can view the results in real time when they voted.

Thanks!

kingc2022 avatar Jul 22 '22 10:07 kingc2022

This feature can be implemented using long polling or a web socket(Django channel). Because this is heavily focused on beginners we should skip WS. Thanks for your suggestion. I will implement long polling so that it feels like real-time.

devmahmud avatar Aug 19 '22 18:08 devmahmud

@devmahmud I want to use this project for my college assignment can you please help me with it?

toukirkhan avatar Dec 11 '22 06:12 toukirkhan

What assist do you need?

Eniiyanu avatar Jan 02 '23 10:01 Eniiyanu

Here I have added in base html template file. This facilitates checking on the result tab if another user votes in real time.We need to be sure that this tag is not applicable to all the html files as it can create a problem of ephemeral data. Html page will reload every 5 seconds. User will get the real time voting experience. Another method by which we can apply this phenomena is Django Web sockets and Production Mode.

AdityaB09 avatar Aug 07 '23 01:08 AdityaB09