from os import environ MY_DEFAULT_TIMER = 30 GRAPH_DEFAULT_TIMER = 60 ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') SESSION_CONFIGS = [ dict( name='EM_Dobble_Study', num_demo_participants=3, app_sequence=['device_compatibility', 'consent', 'dobble_instructions', 'dobble_practice', 'dobble_game', 'questionnaire', 'end'], timeout_seconds=MY_DEFAULT_TIMER, game_play_timeout_seconds=MY_DEFAULT_TIMER, graph_timeout_seconds=GRAPH_DEFAULT_TIMER, choice=True, periods=12, rounds=5, practice_rounds=3, card_items_number=8, wrong_answer_freeze_time=7, population_size=48, enforce_wait_time=15, feedback_theme_size='[[8,1],[16,2],"C"]', consent_dropout='', timeout_dropout='', incompatible_device_dropout='', completion_url='', ), dict( name='Consent_Dobble_Game', app_sequence=['consent'], num_demo_participants=3, timeout_seconds=MY_DEFAULT_TIMER, game_play_timeout_seconds=MY_DEFAULT_TIMER, wrong_answer_freeze_time=7, consent_dropout='' ), dict( name='Dobble_Practice_Only', app_sequence=['dobble_practice'], num_demo_participants=3, timeout_seconds=MY_DEFAULT_TIMER, game_play_timeout_seconds=MY_DEFAULT_TIMER, design='HORIZONTAL', choice=True, practice_rounds=3, card_items_number=8, wrong_answer_freeze_time=7 ), dict( name='Dobble_Game_Only', app_sequence=['dobble_game'], num_demo_participants=3, timeout_seconds=MY_DEFAULT_TIMER, game_play_timeout_seconds=MY_DEFAULT_TIMER, graph_timeout_seconds=GRAPH_DEFAULT_TIMER, choice=True, periods=5, rounds=5, card_items_number=8, wrong_answer_freeze_time=7, population_size=48, feedback_theme_size='[[8,1],[16,2],"C"]', enforce_wait_time=15, timeout_dropout='', ), dict( name='Questionnaire_Only', app_sequence=['questionnaire'], num_demo_participants=3, timeout_seconds=MY_DEFAULT_TIMER, game_play_timeout_seconds=MY_DEFAULT_TIMER, ), dict( name='End_Page_Only', app_sequence=['end'], num_demo_participants=3, completion_url='', ), dict( name='Device_Compatibility_Only', app_sequence=['device_compatibility'], num_demo_participants=1, incompatible_device_dropout='', ), ] SESSION_FIELDS = ['cards', 'round_cards', 'num_rounds', 'feedback'] PARTICIPANT_FIELDS = ['start_time', 'end_time', 'total_score', 'selection', 'period_score', 'feedback', 'feed', 'correct_answers_count', 'error_answers_count', 'animal_feedback_size', 'food_feedback_size', 'summer_feedback_size', 'other_players_pool', 'other_chosen_players'] # 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=1.00, participation_fee=0.00, doc="" ) # 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 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 = '8038834129872' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']