340 lines
11 KiB
Python
340 lines
11 KiB
Python
from os import environ
|
|
|
|
# if you set a property in SESSION_CONFIG_DEFAULTS, it will be inherited by all configs
|
|
# in SESSION_CONFIGS, except those that explicitly override it.
|
|
# the session config can be accessed from methods in your apps as self.session.config,
|
|
# e.g. self.session.config['participation_fee']
|
|
|
|
#### WB MTURK / session config MTurk #########################
|
|
|
|
mturk_hit_settings = {
|
|
'keywords': ['Survey', 'Game', 'Demographics'], # Questionnaire démographique #'Questionnaire', 'Français'
|
|
'title': 'Survey (gain $3.0, duration 7 min)',# Questionnaire démographique
|
|
'description': 'You can earn up to $3.0 in approximately 7 minutes.', # Questionnaire démographique: Gain de $0.60 pour une durée de 1 minute.
|
|
'frame_height': 500,
|
|
'template': 'global/mturk_template.html',
|
|
'minutes_allotted_per_assignment': 60,
|
|
'expiration_hours': 7*24, # 7 days
|
|
# 'grant_qualification_id': '3O3C52ZQEUFOKIZH0662Y397HAFSHV',# Mturk reel Exp G-J ###to prevent retakes
|
|
# 'grant_qualification_id': '3ZSPHI510NGVHARBJTEPE3ECGE6IJ2', # Sandbox Exp G-J
|
|
'grant_qualification_id': '3IMKSS0I9C91UAW9OSPZY1N2EAQW6A' , # Mturk exp Covid
|
|
# 'grant_qualification_id': '3LKGAM13UYJQHAONM1Z1QYBBX0W7ES', # Sandbox exp Covid
|
|
|
|
# 'grant_qualification_id': '3C2W12C2LIJHOP5OLGDWR8T1PGZURB',# Mturk reel Exp Ines
|
|
# 'grant_qualification_id': '3MTUBPNNZX0I8DMRLCRIX5T88L6XMM', # Sandbox Exp Ines
|
|
|
|
'qualification_requirements': [
|
|
{
|
|
'QualificationTypeId': "00000000000000000071", # que pour expé Ines ##### workers from the US, 00000000000000000071 is the code for a location-based qualification
|
|
'Comparator': "EqualTo",
|
|
# 'LocaleValues': [{'Country': "FR"}]
|
|
'LocaleValues': [{'Country': "US"}]
|
|
},
|
|
|
|
{
|
|
# 'QualificationTypeId': "3O3C52ZQEUFOKIZH0662Y397HAFSHV", # Mturk reel Exp G-J ###To prevent a worker from participating in your study twice
|
|
# 'QualificationTypeId': "3ZSPHI510NGVHARBJTEPE3ECGE6IJ2", # Sandbox Exp G-J
|
|
# 'QualificationTypeId': '3C2W12C2LIJHOP5OLGDWR8T1PGZURB',# Mturk reel Exp Ines
|
|
# 'QualificationTypeId': '3MTUBPNNZX0I8DMRLCRIX5T88L6XMM', # Sandbox Exp Ines
|
|
'QualificationTypeId': '3IMKSS0I9C91UAW9OSPZY1N2EAQW6A', # Mturk exp Covid
|
|
# 'QualificationTypeId':'3LKGAM13UYJQHAONM1Z1QYBBX0W7ES', # Sandbox exp Covid
|
|
|
|
'Comparator': "DoesNotExist",
|
|
}
|
|
|
|
]
|
|
}
|
|
#############################################################################
|
|
SESSION_CONFIG_DEFAULTS = {
|
|
'real_world_currency_per_point': 0.001,# 0.001 pour exp realeffort et exp covid sinon = 1
|
|
'participation_fee': 0,# 0.5 # 0 Expé police
|
|
'doc': "",
|
|
'mturk_hit_settings': mturk_hit_settings,
|
|
}
|
|
#############################################################################
|
|
SESSION_CONFIGS = [
|
|
|
|
# dict(
|
|
# name='part1_trust',
|
|
# display_name='part1_trust',
|
|
# num_demo_participants=2,
|
|
# app_sequence=['exp_police_part1_trust_v4'],
|
|
# ),
|
|
|
|
# dict(
|
|
# name='part2_dictator',
|
|
# display_name='part2_dictator',
|
|
## num_demo_participants=2,
|
|
# app_sequence=['exp_police_part2_dictator_v2'],
|
|
# ),
|
|
|
|
# dict(
|
|
# name='part3_TAI',
|
|
# display_name='part3_TAI',
|
|
# num_demo_participants=2,
|
|
# app_sequence=['exp_police_part3_tai'],
|
|
# ),
|
|
|
|
# dict(
|
|
# name='part4_trust',
|
|
# display_name='part4_trust',
|
|
# num_demo_participants=2,
|
|
# app_sequence=['exp_police_part4_trust_v3'],
|
|
# ),
|
|
|
|
# dict(
|
|
# name='part4bis_trust',
|
|
# display_name='part4bis_trust',
|
|
# num_demo_participants=2,
|
|
# app_sequence=['exp_police_part4bis_trust3'],
|
|
# ),
|
|
|
|
# dict(
|
|
# name='part5_6_7_questionnaire',
|
|
# display_name='part5_6_7_questionnaire',
|
|
# num_demo_participants=2,
|
|
# app_sequence=['exp_police_part5_6_7_questionnaire_v2'],
|
|
# ),
|
|
|
|
dict(
|
|
name='exp_police_all',
|
|
display_name='exp_police_all',
|
|
num_demo_participants=2,
|
|
app_sequence=['exp_police_part1_trust_v4', 'exp_police_part2_dictator_v2', 'exp_police_part3_tai', 'exp_police_part4_trust_v3', 'exp_police_part4bis_trust3', 'exp_police_part5_6_7_questionnaire_v2', 'payment_info'],
|
|
),
|
|
|
|
|
|
|
|
# dict(
|
|
# name='exp_covid_trust_v3',
|
|
# display_name='exp_covid_trust_v3',
|
|
# num_demo_participants=1,
|
|
# app_sequence=['exp_covid_trust_v3', 'payment_info_mturk'],
|
|
# ),
|
|
|
|
# dict(
|
|
# name='exp_e4c_questionnaire',
|
|
# display_name='exp_e4c_questionnaire',
|
|
# num_demo_participants=1,
|
|
# app_sequence=['exp_e4c_questionnaire'],
|
|
# ),
|
|
|
|
|
|
|
|
# dict(
|
|
# name='exp_e4c_risk_binswanger_FR',
|
|
# display_name='exp_e4c_risk_binswanger_FR',
|
|
# num_demo_participants=1,
|
|
# app_sequence=['exp_e4c_risk_binswanger_FR'],
|
|
# ),
|
|
|
|
# dict(
|
|
# name='exp_e4c_risk_binswanger',
|
|
# display_name='exp_e4c_risk_binswanger',
|
|
# num_demo_participants=1,
|
|
# app_sequence=['exp_e4c_risk_binswanger'],
|
|
# ),
|
|
|
|
# dict(
|
|
# name='exp_e4c_risk_gneezy',
|
|
# display_name='exp_e4c_risk_gneezy',
|
|
# num_demo_participants=1,
|
|
# app_sequence=['exp_e4c_risk_gneezy'],
|
|
# ),
|
|
|
|
# dict(
|
|
# name='exp_e4c_questionnaire_final',
|
|
# display_name='exp_e4c_questionnaire_final',
|
|
# num_demo_participants=1,
|
|
# app_sequence=['exp_e4c_questionnaire_final'],
|
|
# ),
|
|
|
|
# dict(
|
|
# name='exp_e4c_final_FR',
|
|
# display_name='exp_e4c_final_FR',
|
|
# num_demo_participants=2,
|
|
# app_sequence=['exp_e4c_questionnaire_FR_v2',
|
|
# 'exp_e4c_risk_gneezy_FR_v2',
|
|
# 'exp_e4c_risk_binswanger_FR_v2',
|
|
# 'exp_e4c_risk_gneezy_FR_v2_end',
|
|
# 'exp_e4c_questionnaire_final_FR_v2'],
|
|
# ),
|
|
|
|
|
|
|
|
dict(
|
|
name='exp_contact_ih_all',
|
|
display_name='exp_contact_ih_all',
|
|
num_demo_participants=2,
|
|
app_sequence=['exp_contact_ih_part1_v3', 'exp_contact_ih_part2_v3', 'exp_contact_ih_part3_v3', 'exp_contact_ih_part4_v3'],
|
|
),
|
|
|
|
# dict(
|
|
# name='exp_contact_ih_part1_test',
|
|
# display_name='exp_contact_ih_part1_test',
|
|
# num_demo_participants=1,
|
|
# app_sequence=['exp_contact_ih_part1_test'],
|
|
# ),
|
|
|
|
# dict(
|
|
# name='exp_e4c_final_FR_test',
|
|
# display_name='exp_e4c_final_FR_test',
|
|
# num_demo_participants=2,
|
|
# app_sequence=['exp_e4c_risk_gneezy_FR_v2',
|
|
# 'exp_e4c_risk_binswanger_FR_v2',
|
|
# 'exp_e4c_risk_gneezy_FR_v2_end',
|
|
# 'exp_e4c_questionnaire_final_FR_v2'],
|
|
# ),
|
|
|
|
# dict(
|
|
# name='exp_e4c_final_FR_bot',
|
|
# display_name='exp_e4c_final_FR_bot',
|
|
# num_demo_participants=2,
|
|
# app_sequence=['exp_e4c_questionnaire_FR_v2',
|
|
# 'exp_e4c_risk_gneezy_FR_v2',
|
|
# 'exp_e4c_risk_binswanger_FR_v2',
|
|
# 'exp_e4c_risk_gneezy_FR_v2_end',
|
|
# 'exp_e4c_questionnaire_final_FR_v2'],
|
|
# use_browser_bots=True
|
|
# ),
|
|
|
|
# dict(
|
|
# name='exp_e4c_final_EN_bot',
|
|
# display_name='exp_e4c_final_EN_bot',
|
|
# num_demo_participants=2,
|
|
# app_sequence=['exp_e4c_en_p1_quest',
|
|
# 'exp_e4c_en_p2_risk_gneezy',
|
|
# 'exp_e4c_en_risk_binswanger_v2',
|
|
# 'exp_e4c_en_p2bis_risk_gneezy_end',
|
|
# 'exp_e4c_en_p5_questfin'],
|
|
# use_browser_bots=True
|
|
# ),
|
|
|
|
# dict(
|
|
# name='exp_e4c_final_EN',
|
|
# display_name='exp_e4c_final_EN',
|
|
# num_demo_participants=2,
|
|
# app_sequence=['exp_e4c_en_p1_quest',
|
|
# 'exp_e4c_en_p2_risk_gneezy',
|
|
# 'exp_e4c_en_risk_binswanger_v2',
|
|
# 'exp_e4c_en_p2bis_risk_gneezy_end',
|
|
# 'exp_e4c_en_p5_questfin'],
|
|
# ),
|
|
|
|
# dict(
|
|
# name='exp_e4c_final_test_EN_test',
|
|
# display_name='exp_e4c_final_EN_test',
|
|
# num_demo_participants=2,
|
|
# app_sequence=['exp_e4c_en_p2_risk_gneezy',
|
|
# 'exp_e4c_en_risk_binswanger_v2',
|
|
# 'exp_e4c_en_p2bis_risk_gneezy_end',
|
|
# 'exp_e4c_en_p5_questfin'],
|
|
# ),
|
|
|
|
# dict(
|
|
# name='exp_covid_trust_cadrage_v3',
|
|
# display_name='exp_covid_trust_cadrage_v3',
|
|
# num_demo_participants=1,
|
|
# app_sequence=['exp_covid_trust_cadrage_v3', 'payment_info_mturk'],
|
|
# ),
|
|
|
|
# dict(
|
|
# name='exp_covid_trust_v3_bot',
|
|
# display_name='exp_covid_trust_v3_bot',
|
|
# num_demo_participants=1,
|
|
# app_sequence=['exp_covid_trust_v3'],
|
|
# use_browser_bots=True
|
|
# ),
|
|
|
|
# dict(
|
|
# name='exp_covid_trust_cadrage_v3_bot',
|
|
# display_name='exp_covid_trust_cadrage_v3_bot',
|
|
# num_demo_participants=1,
|
|
# app_sequence=['exp_covid_trust_cadrage_v3'],
|
|
# use_browser_bots=True
|
|
# ),
|
|
|
|
|
|
|
|
# dict(
|
|
# name='exp_police_all_bot',
|
|
# display_name='exp_police_all_bot',
|
|
# num_demo_participants=2,
|
|
# app_sequence=['exp_police_part1_trust_v4', 'exp_police_part2_dictator_v2', 'exp_police_part3_tai',
|
|
# 'exp_police_part4_trust_v3', 'exp_police_part4bis_trust3',
|
|
# 'exp_police_part5_6_7_questionnaire_v2', 'payment_info'],
|
|
# use_browser_bots=True
|
|
# ),
|
|
|
|
|
|
# dict(
|
|
# name='exp_etienne_test4',
|
|
# display_name='exp_etienne Off_the_record (test)',
|
|
# num_demo_participants=1,
|
|
# app_sequence=['exp_etienne_test4'],
|
|
# ),
|
|
# dict(
|
|
# name='trust',
|
|
# display_name='trust',
|
|
# num_demo_participants=2,
|
|
# app_sequence=['trust'],
|
|
# ),
|
|
|
|
dict(
|
|
name='expines_test17',
|
|
display_name='expines_test17',
|
|
num_demo_participants=2,
|
|
app_sequence=['expines_test17'],
|
|
),
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
# ISO-639 code
|
|
# for example: de, fr, ja, ko, zh-hans
|
|
LANGUAGE_CODE = 'en' #en # 'fr' pour Exp Mindfullness et exp police
|
|
|
|
# e.g. EUR, GBP, CNY, JPY
|
|
REAL_WORLD_CURRENCY_CODE = 'USD' # EUR pour Exp Mindfullness
|
|
USE_POINTS = True # False
|
|
|
|
ROOMS = [
|
|
dict(
|
|
name="labeds",
|
|
display_name="labeds",
|
|
participant_label_file="_rooms/labeds.txt"
|
|
),
|
|
]
|
|
|
|
#ADMIN_USERNAME = 'admin'
|
|
ADMIN_USERNAME = 'wael bousselmi'
|
|
# for security, best to set admin password in an environment variable
|
|
ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD')
|
|
|
|
|
|
DEMO_PAGE_INTRO_HTML = """
|
|
Here are some oTree games.
|
|
"""
|
|
|
|
# don't share this with anybody.
|
|
SECRET_KEY = 'nm5eaornndp(_0bt_64k+03(-f-n%4bir_+==$8i7&-o$th2@)'
|
|
|
|
INSTALLED_APPS = ['otree']
|
|
|
|
|
|
AWS_ACCESS_KEY_ID = environ.get('AWS_ACCESS_KEY_ID')
|
|
AWS_SECRET_ACCESS_KEY = environ.get('AWS_SECRET_ACCESS_KEY')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|