Ok, I tried it and it works.
The idea is to put a cookie in the computer of the other person, where
it stocks all the polls it has participated to. That way it does not
depend of the IP.
The code:
def vote(request, poll_id):
p = get_object_or_404(Poll, pk=poll_id)
I'm in the same boat as well, where I'll have logged in users as well
as anonymous users, and each user will only be allowed to submit each
poll once. I haven't figured out how to handle the anonymous users yet
(I'll stay tuned to this thread), but I may be able to suggest a way to
handle it in
Hi,
I am in the same situation actually. Or almost, as I'll have only
anonymous users.
I though about restricting votes based on IP addresses, but today,
with NATs and all, that would be unfair for a lot of people.
What I was planning to do is use the session framework. I will have in
the
Hello all,
I'm trying to extend polls app from tutorial and add a 'user already
voted' check. Can somebody suggest me a way to do that? My current
idea is to add some BLOB filed to polls model and add each voted user
id to list that will be pickled into that field. For anonymous users a
cookie
4 matches
Mail list logo