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'] mturk_hit_settings = { 'keywords': ['bonus', 'study', 'academic'] , 'title': 'Three part academic study, 20 minutes to complete, it includes bonus payments', 'description' : 'Go through three different tasks; you will receive an additional completion payment and a bonus based on your decisions', 'frame_height' : 500, 'template' : 'global/mturk_template.html', 'minutes_allotted_per_assignment': 45, 'expiration_hours' : 7 * 24, 'grant_qualification_id': '33CI7FQ96FTRVQ7QOSLQKVBVRLS7OB', 'qualification_requirements': [ # Only US { 'QualificationTypeId': "00000000000000000071", 'Comparator': "EqualTo", 'LocaleValues': [{'Country': "US"}] }, # At least 500 HITs approved { 'QualificationTypeId': "00000000000000000040", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [500] }, # At least 97% of HITs approved { 'QualificationTypeId': "000000000000000000L0", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [97] }, { 'QualificationTypeId': "33CI7FQ96FTRVQ7QOSLQKVBVRLS7OB", 'Comparator': "DoesNotExist", }, # Voted 2016 #{ # 'QualificationTypeId': "37U3YJ2MMPUB0PMBI2W22O67KNZCLC", # 'Comparator': "Exists", #}, ] # grant_qualification_id='YOUR_QUALIFICATION_ID_HERE', # to prevent retakes } SESSION_CONFIG_DEFAULTS = { 'real_world_currency_per_point': 0.01, 'participation_fee': 1.00, 'doc': "", 'mturk_hit_settings': mturk_hit_settings } SESSION_CONFIGS = [ dict( name='value_guess_sound_2nd', display_name="Online-study_(sound)_2nd", num_demo_participants=24, app_sequence= ['consent', 'choice_lottery', 'tasks_2nd_a', 'tasks_2nd_b', 'return'], treatment='sound', #use_browser_bots = True ), dict( name='value_guess_sound', display_name="Online-study_(sound)", num_demo_participants=24, app_sequence= ['consent', 'choice_lottery', 'tasks', 'tasks_b', 'return'], treatment='sound', #use_browser_bots = True ), dict( name='value_guess_pol', display_name="Online-study_(pol.)", num_demo_participants=12, app_sequence= ['consent', 'choice_lottery', 'tasks', 'tasks_b', 'return'], treatment='pol', #use_browser_bots = True ), ] # Welcome to Alpha Vantage! Here is your API key: 2T9F89HVJB3OJ8XN. Please record this API key for future access to Alpha Vantage. 2T9F89HVJB3OJ8XN # 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 = False ROOMS = [] ADMIN_USERNAME = 'admin_2934' # for security, best to set admin password in an environment variable # ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') ADMIN_PASSWORD = '123_xdf_934' DEMO_PAGE_INTRO_HTML = """ """ SECRET_KEY = 'g@y(s@o1inaype(dns&5*x7@%s$w#^x4d79rvlg6kp%edug9o7' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree'] AWS_ACCESS_KEY_ID = 'AKIAJR3UUQG3FY3OPYCA' #GET THE REAL ONES AND REPLACE AWS_SECRET_ACCESS_KEY_ID = 'SoWSehgsiuNcgwlzWLpqLwffQoEDJmVkG/28zb1b' #GET THE REAL ONES AND REPLACE