TutorialΒΆ

This tutorial will cover the creation of 4 apps:

  • Survey
  • Public goods game
  • Trust game
  • Matching pennies

Before proceeding through this tutorial, install oTree according to the instructions in Installing oTree. Also, you should be familiar with Python; we have a simple tutorial here: Python tutorial.

  • Part 0: Simple survey
    • Upgrade oTree
    • Create the app
    • Define models.py
    • Define the template
    • Define views.py
    • Define the session config in settings.py
    • Reset the database and run
    • Fix any errors
  • Part 1: Public goods game
    • Upgrade oTree
    • Create the app
    • Define models.py
    • Define the template
    • Define views.py
    • Define the session config in settings.py
    • Reset the database and run
    • Troubleshoot with print()
    • Make changes while the server is running
    • Write a bot
  • Part 2: Trust game
    • Create the app
    • Define models.py
    • Define the templates and views
    • Add an entry to SESSION_CONFIGS in settings.py
    • Reset the database and run
  • Part 3: Matching pennies
    • Create the app
    • Define models.py
    • Define the templates and views
    • Add an entry to SESSION_CONFIGS in settings.py
    • Reset the database and run

Related Topics

  • Documentation overview
    • Previous: Python tutorial
    • Next: Part 0: Simple survey

This Page

  • Show Source

Quick search

Enter search terms or a module, class or function name.

©2014, 2015, 2016, 2017, 2018, 2019, 2020, oTree Team - Build Date: 2020-11-05T21:07:49.164544. | Powered by Sphinx 1.3.1 & Alabaster 0.7.12 | Page source