#Desription: This folder contains the OTree files for the regressiondatabase website. #Author: Krishna Srinivasan #Address: PhD student, University of Zurich #Email: krishna.srinivasan[at]econ.uzh.ch ############### To upload this to the cloud ########################## # set this folder as current directory using Windows PowerShell. # type the lines starting with a dash in powerShell - cd C:/../regresiondatabase/website # upgrade otree. You may have to use pip instead of pip3 - pip3 install -U otree # look for the new otree version and add this in requirements_base.txt # upload - git add . - git commit -m "message" - git push heroku master - heroku run "otree resetdb" ################## Files and folders ################################ # settings.py 1. Contains oTree settings. 2. In "SESSION_CONFIGS", the only app we include is the one titled "main" # main/models.py 1. This python script defines the variables. 2. The key variables are: - A_Level, B_Data, C_DepNum, D_DepType # main/templates/pages.py 1. Defines the sequence of pages 2. Result pages have the prefix "R_". e.g. R_A1B1C1D1 indicates that an individual is a novice (A=1), has cross section data (B=1), has one dependent variable (C=1), and has a binary dependent variable (D=1). 3. See directory.txt for information on all the tests. # _templates/global 1. Contains the styles 2. Hometemp.html contains the style for the home page and the last page 3. Page.html contains the style for all other pages