{% extends "otree/BaseSite.html" %} {% block title %} Rooms {% endblock %} {% block content %}

Current rooms:

{% for room in rooms %}

{{ room.display_name }}

{% endfor %}

To create a room, add to your settings.py a setting ROOMS (and, optionally, ROOM_DEFAULTS).

ROOMS should be a list of dictionaries; each dictionary defines the configuration of a room.

For example:


    ROOM_DEFAULTS = {
        'use_secure_urls': True,
    }

    ROOMS = [
        {
            'name': 'ec101',
            'display_name': 'Econ 101',
            'participant_label_file': 'econ101.txt',
        },
        {
            'name': 'ec102',
            'display_name': 'Econ 102',
            'participant_label_file': 'econ102.txt',
        },
    ]
    

Here are the available keys:

ROOM_DEFAULTS is a dict that defines settings to be inherited by all rooms unless explicitly overridden (works in an analogous way to SESSION_CONFIG_DEFAULTS).

{% endblock %}