from os import environ SESSION_CONFIGS = [ dict( name='WelcomePage1', app_sequence=['WelcomePage1'], num_demo_participants=10, ), dict( name='Demos', app_sequence=['Demos'], num_demo_participants=10, ), dict( name='CharitySurveyOne', app_sequence=['charity_survey_one'], num_demo_participants=10, ), dict( name='DonationAll', app_sequence=['WelcomePage1', 'charity_survey_one', 'Demos'], num_demo_participants=10, ), # Step 4 Manually setting up Prolific Link dict( name='charitable_giving_prolific', app_sequence=['WelcomePage1', 'charity_survey_one', 'Demos'], num_demo_participants=1, # display_name='charitable_giving_prolific', # completionlink='https://app.prolific.co/submissions/complete?cc=2DE89C1A', # completionlink='https://www.google.co.uk/', ), ] # Step 1 Manually setting up Prolific Link ROOMS = [ dict( name='charitable_giving_prolific_JBS', display_name='charitable_giving_prolific', # participant_label_file='_rooms/your_study.txt', # use_secure_urls=True, ), ] # 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( real_world_currency_per_point=0.25, participation_fee=5.00, doc="" ) PARTICIPANT_FIELDS = ['random_number11', 'random_number12', 'random_number15', 'random_number110', 'random_number120', 'kept', 'donate', 'assigned_treatment', 'assigned_order', 'finished' ] SESSION_FIELDS = [] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = ' ' USE_POINTS = False REAL_WORLD_CURRENCY_DECIMAL_PLACES = 0 ADMIN_USERNAME = 'user2' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = 'Warwick22!h' ##------------------ # https://dallasnova.netlify.app/post/running-otree-on-prolific-for-beginners/#assumptions ##Navigate to Powershell to configure security ##Heroku config:set OTREE_AUTH_LEVEL=DEMO ##Controls what a user without password can do, In this case, demo ##Heroku config:set OTREE_ADMIN_PASSWORD=mypassword ##When accessing admin interface -- require mypassword ##OTREE_PRODUCTION=0 ##Takes value 1 or 0; If an error, toggles whether participants will see a brief (1) or detailed error message ## left 0 because a full-page error is thrown otherwise ##------------------ # OTREE_AUTH_LEVEL = environ.get('STUDY') # OTREE_PRODUCTION = environ.get('OTREE_PRODUCTION') # AWS_ACCESS_KEY_ID = 'AKIAJMQ4MWM6PBFEUULQ' # AWS_SECRET_ACCESS_KEY = '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' AWS_ACCESS_KEY_ID = environ.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = environ.get('AWS_SECRET_ACCESS_KEY') DEMO_PAGE_INTRO_HTML = """ """ DEBUG = False # OTREE_ADMIN_PASSWORD = 'Warwick22!h' # OTREE_ADMIN_USERNAME = 'user2', OTREE_PRODUCTION = '1', OTREE_AUTH_LEVEL = 'DEMO', SECRET_KEY = '1836772813995'