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'] SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=0.10, participation_fee=0.00, doc="" ) SESSION_CONFIGS = [ dict( name='public_goods_x2', display_name="Public Goods 2", num_demo_participants=2, app_sequence=['public_goods_x2', 'payment_info'], ), dict( name='mpl', display_name="MPL", num_demo_participants=2, app_sequence=['mpl', 'payment_info'], ), dict( name='ambiguity', display_name="Ambiguity", num_demo_participants=2, app_sequence=['ambiguity', 'payment_info'], ), dict( name='ultimo', display_name="Ultimo", num_demo_participants=2, app_sequence=['ultimo', 'payment_info'], ), dict( name='trust', display_name="Trust", num_demo_participants=2, app_sequence=['trust', 'payment_info'], ), dict( name='dictator', display_name='dictator', num_demo_participants=2, app_sequence=['dictator', 'payment_info'], ), dict( name='prova_random', display_name='prova_random', num_demo_participants=2, app_sequence=['id_and_consent','dictator','ultimo','trust','public_goods_x2','ambiguity','mpl','random_payment'], ), ] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'GBP' USE_POINTS = True ROOMS = [ dict( name='econ101', display_name='Econ 101 class', participant_label_file='_rooms/econ101.txt', ), dict(name='live_demo', display_name='Room for live demo (no participant labels)'), ] # AUTH_LEVEL: # this setting controls which parts of your site are freely accessible, # and which are password protected: # - If it's not set (the default), then the whole site is freely accessible. # - If you are launching a study and want visitors to only be able to # play your app if you provided them with a start link, set it to STUDY. # - If you would like to put your site online in public demo mode where # anybody can play a demo version of your game, but not access the rest # of the admin interface, set it to DEMO. # for flexibility, you can set it in the environment variable OTREE_AUTH_LEVEL AUTH_LEVEL = environ.get('STUDY') ADMIN_USERNAME = 'Lorenzo' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = 'LorenzoDPTRT' DEMO_PAGE_INTRO_HTML = """ Here are some oTree games. """ # don't share this with anybody. SECRET_KEY = ')2ey6*-vdc^%$2qf4iv-ug_#4e(8av(-b6+pfl$%qb(%4xocm&' INSTALLED_APPS = ['otree']