from os import environ import os from config.treatment import Treatment, TreatmentRange SESSION_CONFIGS = [ dict( name='NonCom_Flexible', display_name="Treatment NC-Flexible: Non competition Flexible wage", app_sequence=['exp_intro', 'cost_experiment','hiringFlexible',"survey"], num_demo_participants=1, ), dict( name='Comp_Flexible', display_name="Treatment C-Flexible: Competition Flexible wage", app_sequence=['exp_intro', 'cost_experiment','hiringFlexible',"survey"], num_demo_participants=1, ),dict( name='NonCom_Fix', display_name="Treatment NC-Fix wage: Non-Competition Flexible wage", app_sequence=['exp_intro', 'cost_experiment','hiringFlexible',"survey"], num_demo_participants=1, ) ,dict( name='Comp_Fix', display_name="Treatment C-FIX Wage: Competition Flexible wage", app_sequence=['exp_intro', 'cost_experiment','hiringFlexible',"survey"], num_demo_participants=1, ) ,dict( name='test', display_name="test", app_sequence=['survey'], num_demo_participants=1, ) ] # 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=1.00, participation_fee=0.00, doc="", s3_bucket="https://hr-hiring-jij.s3.amazonaws.com/", # estimation or hiring task # used for locating s3 prefix task_type=environ.get("TASK_TYPE", "estimation"), task_type_prefix=environ.get("TASK_TYPE", "estimation") + "/", consent_form="HR_Consent_Form.pdf", information_sheet=environ.get("TASK_TYPE", "estimation") + "_information_sheet.pdf", video_prefix="videos/", instructions_prefix="text_instructions/", practicetask_time_limit=120, treatment_range=TreatmentRange.InterParticipant.value, ) MEDIA_URL = '/media/' MEDIA_ROOT = 'media' PARTICIPANT_FIELDS = [] 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 = 'USD' USE_POINTS = False ROOMS = [ dict( name='Cost_Experiment', display_name='Experiment', participant_label_file='_rooms/econ101.txt', ), dict(name='live_demo', display_name='Room for live demo (no participant labels)'), ] ADMIN_USERNAME = 'admin' ADMIN_PASSWORD= 'admin01' # 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. """ SECRET_KEY = "ksj@=j1k-lz0v*sl85da03w@1tv4mpu#y1mglcz_co^1dt&4r3" INSTALLED_APPS = ['otree','exp_intro',"cost_experiment","hiringFlexible"]