choice tasks web application

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

choice tasks web application

xueqi dong

Hello, I have just finished the django tutorial here But I am still not sure to write the following intended web application.

The application asks an user to enter his/her name, then to make 30 choices(either choose 1 or 2). At the end I need to record those 30 choices under the user's name.

The major part I am confusing is about data export and import. The tutorial shows how to enter the questions in a shell. But I would like to the program to read parameters from a matlab matrix(say 30*6 matrix), or whatever files possible. Here the number of rows is equal to 30, which is equal to the number of task.

Essentially I only need one form. The form should iteratively read one row from the matrix and uses the numbers in that row to show a choice task to the user. The user makes a choice and proceeds to next form. The next form will read the next row from the matrix and shows a new choice task. An example of one choice task would look like the following:

Which one do you prefer?

Choice 1: [40,20,10]

Choice 2: [30,50,20]

I am also not sure about using database. The exported data is simply 30  numbers of either 1 or 2. Can I just find some way to save this dataset, named as the user's name? 

Can anyone help me with this or  let me know where to find an example/ tutorial?

Many thanks!



You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at
To view this discussion on the web visit
For more options, visit