I have gone through Django’s basic Poll tutorial, and I realize that I can change some things here and there and make a HotOrNot/FaceMash style site out of it. However, since I’m still a noob, I can only come up with the concept of it – there’s no way for me to know how to do it. So the concept is that instead of displaying all the choices for the poll, display only two random choices(which should not be the same). Also, there needs to be a way to bulk upload from computer or fetch from an external storage/server all the images as choices to the poll. Could anyone tell me how to make this happen? Thank you very much.
Share
Well, this is not clear but let’s give a try.
I guess you want to compare 2 random photos, and let the user choose which is the best.
I think of one simple way to do this, not necessarily with the poll app.
First, create a model to store images. For example:
Then instead of using poll, make your own:
Make your forms and save the results of the poll in a Match instance.
To know how many times a picture has been shown, just look for Match rows where winner or loser is the picture:
Then the same applies to know how much a picture is popular. If it is often a winner, then you can assume it has good looks. Hope this helps.