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( session_name='test_session', survey_link='https://www.qualtrics.com', timeseries_filepath='_static/ZTS/timeseries_files/', timeseries_filename='["demo_1.csv", "demo_2.csv"]', refresh_rate_ms='[500, 500]', initial_cash='[5000, 5000]', initial_shares='[17, 17]', trading_button_values='[[1, 10, 20], [1, 10, 20]]', random_round_payoff=True, training_round=True, graph_buffer=0.05, real_world_currency_per_point=1, participation_fee=1.00, doc='', ) SESSION_CONFIGS = [ dict( name='Investment_Exercise', num_demo_participants=1, app_sequence=['ZTS'], num_rounds=10, ), ] SESSION_FIELDS = ['num_rounds'] PARTICIPANT_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 = True ROOMS = [ dict( name='Investment_Exercise_room', display_name='Investment Exercise Room', participant_label_file='_rooms/demo.txt', ), ] INSTALLED_APPS = [ 'django.contrib.staticfiles', ] 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 = """ Investment Exercise

A web-based behaviour experiment in the form of a trading game

""" # Change this default secret key to a fully random one after forking. SECRET_KEY = '1sjjosef4a7#)%cb3xfxfnvct8464564p&*hatrb6al*u*dude^'