Skip to main content

oTree extension for inter-page communication.

Project description

oTree Redwood Extension
=================

The oTree Redwood extension enables inter-page communication in an oTree
experiment.

Installation
------------

(Requires otree-core >= 1.2)

.. code-block::

pip3 install -U otree-core
pip3 install -U otree-redwood

In ``settings.py``, add ``'otree-redwood'`` to ``INSTALLED_APPS``,
e.g. ``INSTALLED_APPS = ['otree', 'otree-redwood']``

Then run ``otree resetdb``.

For installation on your server, your ``requirements_base.txt`` should
contain ``otree-redwood`` as well as ``otree-core>=1.2.0`` (or higher, etc).

Usage
-----

Basic usage
~~~~~~~~~~~

Add ``{% load otree_redwood %}`` to the top of your template, e.g.:

.. code-block:: html+django

{% load staticfiles otree_tags %}
{% load otree_redwood %}

Exporting CSV logs
--------------------------

Upgrading
---------

pip install -U otreechat

TODO
----
Awesome debugging - watch events live in otree-redwood-debug, filter events
by group, participant, channel, and values. Save and replay events into the
otree-events component.

Pushing to PyPI
---------------

Increment version number in ``setup.py``.

You need a ~/.pypirc like this:

.. code-block::
[distutils]
index-servers =
pypi

[pypi]
username:yourusername
password:yourpassword

.. code-block::
python setup.py sdist
twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

otree-redwood-0.4.0.tar.gz (305.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page