I need a little help how to go about doing this. I have created a poll that randomly generates a question, say “How do you like ‘Blue’?” The user will rate it from 1-5. A new question will appear such as “How do you like ‘Green’?”
The words are randomly pulled from an array.
How do I begin to write a view/model to store the value selected by the user for each word?
The output should look something like this (the scores would be averaged for each color):
Blue 3.4
Green 4.1
Red 2.8
You can create a Model to store your colors:
and store your colors there.
To make it rateable just use one of the great rating plugins for Django, for example django-ratings. Of course you can also create your own rating app, but I think there is a planty of them already on the internet, so why don’t use one?
hth