from os import environ #AWS acesss AWS_ACCESS_KEY_ID = environ.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = 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'] # change state in session_config and session_config_default SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=1.00, participation_fee=0.50, doc="", mturk_hit_settings = dict( keywords= ['bonus', 'survey'], title= 'Short survey - University of Zurich', description= 'You are invited to participate in a study conducted by researchers at University of Zurich, Switzerland.' ' It will take you about 3 minutes to complete.' ' Your valuable contribution to this study is appreciated.', frame_height= 500, template= 'global/mturk_template.html', minutes_allotted_per_assignment= 180, expiration_hours= 60, grant_qualification_id= '3VCRHAWCXN89OU1QEPSSJ9GJUVXFWP',# to prevent retakes qualification_requirements=[ { #withapprovalgreaterthan80% 'QualificationTypeId':"000000000000000000L0", 'Comparator':"GreaterThan", 'IntegerValues':[90] }, {#with more than 100 HITs 'QualificationTypeId': "00000000000000000040", 'Comparator':"GreaterThan", 'IntegerValues':[50] }, {# for people in the US 'QualificationTypeId': "00000000000000000071", 'Comparator': "EqualTo", 'LocaleValues': [{ 'Country': "US", 'Subdivision': "NY"}] }, { # prevent repeaters krishna 'QualificationTypeId':"3KYNP8H8ZWLCRXXBOE7T1LOH6FQTHD", 'Comparator':"DoesNotExist", }, { # prevent repeaters mimi 'QualificationTypeId':"3VCRHAWCXN89OU1QEPSSJ9GJUVXFWP", 'Comparator':"DoesNotExist", } ] ) ) SESSION_CONFIGS = [ dict( name='pilot', display_name="Short survey - UZH", state_config = "NY", use_browser_bots=False, num_demo_participants=20, app_sequence=['app'] ), ] # 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' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') DEMO_PAGE_INTRO_HTML = """ """ SECRET_KEY = '-n6p1_-e98iro0ak5(os=9#1r%lbeut7q+$_%42092uu1m5cz-' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']