import os from os import environ os.environ['OTREE_PRODUCTION'] = "1" os.environ['OTREE_AUTH_LEVEL'] = "STUDY" os.environ['OTREE_ADMIN_PASSWORD'] = "CREED" SESSION_CONFIGS = [ # dict( # name='whistle', # app_sequence=['whistle', 'survey'], # num_demo_participants=15, # treatment_competition=True, # treatment_random=False # ), dict( name='whistle', app_sequence=['whistle_task', 'survey'], num_demo_participants=15, treatment_competition=True, treatment_random=False ) ] # 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.01, participation_fee=2.00, doc="" ) 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 = 'GBP' REAL_WORLD_CURRENCY_DECIMAL_PLACES = 2 POINTS_DECIMAL_PLACES = 0 USE_POINTS = True ROOMS = [ dict( name='Amsterdam', display_name='Amsterdam', participant_label_file='_rooms/amsterdam_numbers.txt', use_secure_urls=True ) ] # for flexibility, you can set it in the environment variable OTREE_AUTH_LEVEL AUTH_LEVEL = environ.get('OTREE_AUTH_LEVEL') # for simplicity, you can leave the username admin ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') # Consider '', None, and '0' to be empty/false # DEBUG = (environ.get('OTREE_PRODUCTION') not in {None, '', '0'}) if environ.get('OTREE_PRODUCTION') not in {None, '', '0'}: DEBUG = False else: DEBUG = True DEMO_PAGE_INTRO_HTML = """ Here are some oTree games. """ SECRET_KEY = '3252587657528' INSTALLED_APPS = ['otree']