This app contains 14 binary preference decisions.
Question content is in C.ROUNDS in __init__.py. Each entry defines the scenario, two action labels, and their images. The app randomizes the left/right display order once per participant. Player.choice stores the canonical left or right response; Player.options_reversed records the display order.
Images are stored inside the app in static/binary_preferences/. Image paths in C.ROUNDS are relative to that folder.
In practice: How to make it run?
Download binary_preferences.zip from this repository
Places the files in your oTree project
Add the binary_preferences folder to your otree main folder
Add the following configuration to the SESSION_CONFIGS list in your settings.py file:
dict(
name='binary_preferences_demo',
display_name="Binary preferences",
app_sequence=['binary_preferences'],
num_demo_participants=10,
),