from os import environ from treatments import * # Production TODOs: # - Fill PROLIFIC_URL with correct url # - Turn OTREE_PRODUCTION to 1 on Heroku # - Resolve all TODOs in code # - Download all page times after session # - Download all chat logs after session # Database Upgrade: # heroku addons:create heroku-postgresql:premium-0 # heroku pg:wait # heroku pg:promote HEROKU_POSTGRESQL_WHITE # heroku run 'otree resetdb' SESSION_CONFIGS = [ dict( display_name="4-Augen-Prinzip Base", name="four_eyes_base", app_sequence=["intro", "dice_roll", "outro"], num_demo_participants=2, treatment=BaseTreatment(), completion_code='' ), dict( display_name="4-Augen-Prinzip Communication", name="four_eyes_communication", app_sequence=["intro", "dice_roll", "outro"], num_demo_participants=2, treatment=CommunicationTreatment(), completion_code='' ), dict( display_name="4-Augen-Prinzip Individual", name="four_eyes_individual", app_sequence=["intro", "dice_roll", "outro"], num_demo_participants=2, treatment=IndividualTreatment(), completion_code='' ), dict( display_name="4-Augen-Prinzip Forced-New-Partner", name="four_eyes_forced_new_partner", app_sequence=["intro", "dice_roll", "outro"], num_demo_participants=10, treatment=ForcedNewPartnerTreatment(), completion_code='' ), dict( display_name="4-Augen-Prinzip Simultaneous", name="four_eyes_simultaneous", app_sequence=["intro", "dice_roll", "outro"], num_demo_participants=2, treatment=SimultaneousTreatment(), completion_code='' ), ] # if you set a property in SESSION_CONFIG_DEFAULTS, it will be inherited by all configs # in SESSION_CONFIGS, except those that explicitly override i # the session config can be accessed from methods in your apps as self.session.config, # e.g. self.session.config['participation_fee'] SESSION_CONFIG_DEFAULTS = dict(real_world_currency_per_point=0.5, participation_fee=4.5, doc="") PARTICIPANT_FIELDS = [ "partner_dice_report", "paid_round", "role", "partner", "matching_arrival_time", "dropout", "err_msg", "time_spent_on_pages", "batch", "id_in_batch", "is_responsible", "potential_payoff", ] SESSION_FIELDS = ["matching", "batch_nr", "nr_players_in_batch", "open_matching"] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = "en" # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = "GBP" USE_POINTS = True ADMIN_USERNAME = "admin" # for security, best to set admin password in an environment variable ADMIN_PASSWORD = environ.get("OTREE_ADMIN_PASSWORD") DEMO_PAGE_INTRO_HTML = """ """ SECRET_KEY = "3949930370543"