Open JohnWarren1 opened 6 years ago
User can vote once, refresh page, vote again. want to limit each unique visitor to one vote a day:
(historic idea) Rather than requiring a login would rather do this with a cookie or database entry:
cookie https://stackoverflow.com/questions/11059191/django-guests-vote-only-once-poll probably best solution. Risk is pretty low.
database (may have scaling issues. Seems a nice solution though) a table that logs:
ip image id vote type? .... depends whether this table stores vote result or just ips that have voted. Could be flushed daily.
More recently Have warmed to the idea of requiring a login after learning about mixins. Login + security is super easy using django
User can vote once, refresh page, vote again. want to limit each unique visitor to one vote a day:
(historic idea) Rather than requiring a login would rather do this with a cookie or database entry:
cookie https://stackoverflow.com/questions/11059191/django-guests-vote-only-once-poll probably best solution. Risk is pretty low.
database (may have scaling issues. Seems a nice solution though) a table that logs:
More recently Have warmed to the idea of requiring a login after learning about mixins. Login + security is super easy using django