from os import environ SESSION_CONFIGS = [ dict( name='co2_survey', app_sequence=['co2_survey'], num_demo_participants=20, ), dict( name='voucher_redeem', app_sequence=['voucher_redeem'], num_demo_participants=20, ), ] # 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=0.00, doc="" ) ROOMS = [ dict( name='labbet', display_name='Main survey', ), dict( name='helsinkiunicafe', display_name='Original Main survey', ), ] PARTICIPANT_FIELDS = [] SESSION_FIELDS = [] # the environment variable OTREE_PRODUCTION controls whether Django runs in # DEBUG mode. If OTREE_PRODUCTION==1, then DEBUG=False # if environ.get('OTREE_PRODUCTION') not in {None, '', '0'}: # DEBUG = False # else: # DEBUG = True DEBUG = False # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'EUR' USE_POINTS = False ADMIN_USERNAME = 'admin' ADMIN_PASSWORD = 'CO2survey' # DEBUG = (environ.get('OTREE_PRODUCTION') in {None, '', '0'}) # for security, best to set admin password in an environment variable # ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') DEMO_PAGE_INTRO_HTML = """ """ # don't share this with anybody. SECRET_KEY = 'CO2unicafe' # AUTH_LEVEL: # 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 the # environment variable OTREE_AUTH_LEVEL 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, set OTREE_AUTH_LEVEL # to DEMO. This will allow people to play in demo mode, but not access # the full admin interface. # AUTH_LEVEL = environ.get('OTREE_AUTH_LEVEL') AUTH_LEVEL = 'STUDY'