import os from os import environ ROOMS = [ dict( name='CPR', display_name='Decision_Game', # participant_label_file='_rooms/CPR.txt', use_secure_urls=True, ), ] SESSION_CONFIG_DEFAULTS = { 'real_world_currency_per_point': 0.01, 'participation_fee': 2.5, 'doc': "", # 'mturk_hit_settings': mturk_hit_settings, } SESSION_CONFIGS = [ { 'name': 'CPR', 'display_name': "Decision_Game", 'num_demo_participants': 4, 'app_sequence': ['CPR'], # 'completionlink': 'https://app.prolific.co/submissions/complete?cc=11111111', }, ] DEBUG = (environ.get('OTREE_PRODUCTION') in {None, '', '0'}) OTREE_AUTH_LEVEL = environ.get('OTREE_AUTH_LEVEL') os.environ["OTREE_AUTH_LEVEL"] = "STUDY" # mturk_hit_settings=dict( # keywords='bonus, study', # title='Title for your experiment', # 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 # ) # mturk_hit_settings = { # 'keywords': ['Academic','Interactive', 'Game', 'Bonus', 'Multiplayer'], # 'title': 'Interactive Decision Game (Academic, Interactive, Game, Bonus, 45 min, $6.5 on avg - max $11)', # 'description': 'An Interactive Game with other MTurkers', # 'frame_height': 500, # 'template': 'global/mturk_template.html', # 'minutes_allotted_per_assignment': 90, # 'expiration_hours': 7 * 24, # 'grant_qualification_id': '3Z1HL5WC7LFRKME2IN8IAJL6D2SH6I', # 'qualification_requirements': [ # # { # 'QualificationTypeId': "00000000000000000071", # 'Comparator': "EqualTo", # 'LocaleValues': [{'Country': "US"}] # }, # { # 'QualificationTypeId': "3Z1HL5WC7LFRKME2IN8IAJL6D2SH6I", # 'Comparator': "DoesNotExist", # }, # { # 'QualificationTypeId': "000000000000000000L0", # 'Comparator': "GreaterThanOrEqualTo", # 'IntegerValues': [95] # # }, # { # 'QualificationTypeId': "00000000000000000040", # 'Comparator': "GreaterThanOrEqualTo", # 'IntegerValues': [1000] # }, # ] # } # # AWS_ACCESS_KEY_ID = environ.get('AWS_ACCESS_KEY_ID') # AWS_SECRET_ACCESS_KEY = environ.get('AWS_SECRET_ACCESS_KEY') # # os.environ["AWS_ACCESS_KEY_ID"] = "AKIATJF62YM2DHOMO26F" # os.environ["AWS_SECRET_ACCESS_KEY"] = "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" # # print(os.environ.get('AWS_ACCESS_KEY_ID')) # print(os.environ.get('AWS_SECRET_ACCESS_KEY')) # 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'] # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'USD' USE_POINTS = False ADMIN_USERNAME = 'Martina091' ADMIN_PASSWORD = '091_serg' # for security, best to set admin password in an environment variable # ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') os.environ["ADMIN_PASSWORD"] = "091_serg" DEMO_PAGE_INTRO_HTML = """ Here are some oTree games. """ SECRET_KEY = "U1ysenBrez2W9dod+V1s/QCo8oIkgahWcizmFFD6" INSTALLED_APPS = ['otree']