from os import environ import psycopg2 # 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'] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'de' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'EUR' USE_POINTS = True #ROOMS = [ # dict( # name='test1', # display_name='Test1', # ), # dict( # name='testex1', # display_name='Testexperiment1', # participant_label_file='sellers/_labels/labels_test_1.txt', # use_secure_urls=True # ), # dict( # name='testex2', # display_name='Testexperiment2', # participant_label_file='sellers/_labels/labels_test_2.txt', # use_secure_urls=True # ), # dict( # name='exp2', # display_name='Exp2', # participant_label_file='sellers/_labels/labels_2.txt', # use_secure_urls=True # ), # dict( # name='exp3', # display_name='Exp3', # participant_label_file='sellers/_labels/labels_3.txt', # use_secure_urls=True # ), #] SESSION_CONFIG_DEFAULTS = { 'real_world_currency_per_point': 0.2, 'participation_fee': 0.00, 'doc': "", } SESSION_CONFIGS = [ { 'name': 'sellers', 'display_name': 'sellers', 'num_demo_participants': 4, 'num_rounds': 1, 'app_sequence': ['sellers'], }, { 'name': 'nosellers', 'display_name': 'nosellers', 'num_demo_participants': 4, 'num_rounds': 1, 'app_sequence': ['nosellers'], }, { 'name': 'allocation', 'display_name': 'allocation', 'num_demo_participants': 4, 'num_rounds': 1, 'app_sequence': ['allocation'], }, #{ # 'name': 'nosellers_old', # 'display_name': 'nosellers_old', # 'num_demo_participants': 2, # 'num_rounds': 3, # 'app_sequence': ['nosellers_old'], # }, ] DEBUG = False 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 = """ """ SECRET_KEY = '1keomag2=sn$sdx1=u-x1eifza-)7&gm=k*!7&le$)d^d0*p*g' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']