from os import environ import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # 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'] SESSION_CONFIG_DEFAULTS = dict( # dict( # real_world_currency_per_point=1.00, participation_fee=0.00, doc="" # ) real_world_currency_per_point=1.00, participation_fee=0.00, doc="", keywords='bonus, study', title='survey', description='Description for your experiment', frame_height=500, template='global/mturk_template.html', minutes_allotted_per_assignment=60, expiration_hours=7 * 24, qualification_requirements=[] # grant_qualification_id='YOUR_QUALIFICATION_ID_HERE', # to prevent retakes ) SESSION_CONFIGS = [ # dict( # name='public_goods', # display_name="Public Goods", # num_demo_participants=3, # app_sequence=['public_goods', 'payment_info'], # ), # dict( # name='guess_two_thirds', # display_name="Guess 2/3 of the Average", # num_demo_participants=3, # app_sequence=['guess_two_thirds', 'payment_info'], # ), # dict( # name='new_guess_two_third', # display_name="new Guess 2/3 of the Average", # num_demo_participants=3, # app_sequence=['new_guess_two_third', 'payment_info'], # ), # dict( # name='my_simple_survey', # display_name='my_simple_survey', # num_demo_participants=1, # app_sequence=['my_simple_survey'], # ), # dict( # name='my_public_goods', # display_name="My_Public Goods", # num_demo_participants=2, # app_sequence=['my_public_goods', 'payment_info'], # ), # # dict( # name='PGG_random_period', # display_name='PGG_random_period', # num_demo_participants=2, # app_sequence=['PGG_Randomp_period', 'payment_info'], # ), # dict(name='matching_pennies', # display_name="Matching Pennies", # num_demo_participants=2, # app_sequence=['matching_pennies'], # ), # dict(name='simple_anchoring', # display_name="simple_anchoring", # num_demo_participants=5, # app_sequence=['simple_anchoring'], # ), # dict(name='survey', # display_name="survey", # num_demo_participants=2, # app_sequence=['survey'], # ), # # dict(name='Demographic_survey', # display_name="Demographic_survey", # num_demo_participants=2, # app_sequence=['Demographic_survey'], # ), dict(name='mpl', display_name="Risk Preference Elicitation", num_demo_participants=3, app_sequence=['mpl'], ), # dict(name='dictator', # display_name="Dictator Game", # num_demo_participants = 2, # app_sequence=['dictator', 'payment_info'], # ), ] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'USD' USE_POINTS = True ROOMS = [ dict( name='econ101', display_name='Econ 101 class', participant_label_file='_rooms/econ101.txt', ), dict(name='live_demo', display_name='Room for live demo (no participant labels)'), ] 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 = """ Here are some oTree games. """ # don't share this with anybody. SECRET_KEY = 'vf$e7^fpy23wpclf9q_z%ebga+nhhw%(+gu&7s5-nsk9#t#u5w' INSTALLED_APPS = ['otree', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles'] # STATICFILES_DIRS = [ # os.path.join(BASE_DIR, 'MPL\\static'), # ] STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') # inactive session configs # dict(name='trust', display_name="Trust Game", num_demo_participants=2, app_sequence=['trust', 'payment_info']), # dict(name='prisoner', display_name="Prisoner's Dilemma", num_demo_participants=2, # app_sequence=['prisoner', 'payment_info']), # dict(name='volunteer_dilemma', display_name="Volunteer's Dilemma", num_demo_participants=3, # app_sequence=['volunteer_dilemma', 'payment_info']), # dict(name='cournot', display_name="Cournot Competition", num_demo_participants=2, app_sequence=[ # 'cournot', 'payment_info' # ]), # dict(name='dictator', display_name="Dictator Game", num_demo_participants=2, # app_sequence=['dictator', 'payment_info']), # dict(name='traveler_dilemma', display_name="Traveler's Dilemma", num_demo_participants=2, # app_sequence=['traveler_dilemma', 'payment_info']), # dict(name='bargaining', display_name="Bargaining Game", num_demo_participants=2, # app_sequence=['bargaining', 'payment_info']), # dict(name='common_value_auction', display_name="Common Value Auction", num_demo_participants=3, # app_sequence=['common_value_auction', 'payment_info']), # dict(name='bertrand', display_name="Bertrand Competition", num_demo_participants=2, app_sequence=[ # 'bertrand', 'payment_info' # ]), # dict(name='public_goods_simple', display_name="Public Goods (simple version from tutorial)", # num_demo_participants=3, app_sequence=['public_goods_simple', 'payment_info']), # dict(name='trust_simple', display_name="Trust Game (simple version from tutorial)", num_demo_participants=2, # app_sequence=['trust_simple']),