from os import environ SESSION_CONFIGS = [ dict( name='experiment_til', country='nl', display_name="experiment_til", app_sequence=['welcome', 'part1task1_1', 'part1task1t_1', 'part1task2_1', 'part1task2j_1', 'part1task3', 'part1task1_2', 'part1task1t_2', 'part1task2_2', 'part1task2j_2', 'part1task6eff_1', 'part1task6eq_1', 'part1task7', 'part1task6eff_2', 'part1task6eq_2', 'part2', 'part3dierolling', 'part3bucket', 'part3investment', 'survey'], num_demo_participants=1, ), dict( name='payment_info', country='nlt', display_name="payment_info", app_sequence=['payment_info'], num_demo_participants=1, ), ] # dict( # name='part3dierolling', # display_name="die_rolling", # app_sequence=['part3dierolling'], # num_demo_participants=1, # ), # dict( # name='part3bucket', # display_name="rule_following", # app_sequence=['part3bucket'], # num_demo_participants=1, # ), # dict( # name='part3', # display_name="part3", # app_sequence=['part3dierolling', 'part3bucket', 'part3investment'], # num_demo_participants=1, # ), # dict( # name='part2', # country='nl', # display_name="part2", # app_sequence=['part2'], # num_demo_participants=1, # ), # dict( # name='survey', # country='nl', # display_name="survey", # app_sequence=['survey'], # num_demo_participants=5, # ), # dict( # name='welcome', # country='nl', # tasks=5, # display_name="welcome", # app_sequence=['welcome'], # 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, participation_fee=5, doc="" ) PARTICIPANT_FIELDS = ['attention_counter', 'attention_counter_costly', 'questionlist', 'chosen_set', 'chosen_set_final', 'answers_chosen_set', 'chosen_set_statements', 'def_no_costly', 'no_costly', 'maybe_costly', 'yes_costly', 'def_yes_costly', 'total_cost', 'care', 'fair', 'loyal', 'authority', 'sanctity', 'liberty', 'convention', 'care_total', 'fair_total', 'loyal_total', 'authority_total', 'sanctity_total', 'liberty_total', 'convention_total', 'care_mean', 'fair_mean', 'loyal_mean', 'authority_mean', 'sanctity_mean', 'liberty_mean', 'convention_mean', 'payment_roll', 'chosen_round', 'choice_roll', 'bucket_choice', 'payment_bucket', 'tables', 'number_rounds', 'sequence', 'dg_order', 'dg3pp_order', 'tog_order'] SESSION_FIELDS = [] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # EUR or TRY REAL_WORLD_CURRENCY_CODE = 'EUR' USE_POINTS = True ROOMS = [ dict( name='experiment', display_name='ExperimentRoom1', participant_label_file='_rooms/econ101.txt', use_secure_urls=True ), dict( name='payments', display_name='Payment check', participant_label_file='_rooms/econ102.txt', use_secure_urls=True ), ] ADMIN_USERNAME = 'adminasli' # for security, best to set admin password in an environment variable # ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') ADMIN_PASSWORD = 'herseynormsicin' DEMO_PAGE_INTRO_HTML = """ Here are some oTree games. """ SECRET_KEY = '{{ secret_key }}' INSTALLED_APPS = ['otree']