# drEffects import os from os import environ import dj_database_url from boto.mturk import qualification import otree.settings # SENTRY_DSN = 'http://406c2b097f3340bca2b45ee7edf1f326:031bfc3a03a34af588ff995aedd0f283@sentry.otree.org/211' BASE_DIR = os.path.dirname(os.path.abspath(__file__)) # 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 ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') # don't share this with anybody. SECRET_KEY = 'v5bq+tm%z-8osne3)lknzyge%p@hi-8&lqp)e#9x0=!lroe2e_' # SECRET_KEY = environ.get('SECRET_KEY') BROWSER_COMMAND = 'firefox' # DATABASES = { # 'default': dj_database_url.config( # default='sqlite:///' + os.path.join(BASE_DIR, 'db.sqlite3') # ) # } # AUTH_LEVEL: AUTH_LEVEL = environ.get('OTREE_AUTH_LEVEL') # e.g. EUR, CAD, GBP, CHF, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'GBP' USE_POINTS = True POINTS_DECIMAL_PLACES = 1 # e.g. en, de, fr, it, ja, zh-hans # see: https://docs.djangoproject.com/en/1.9/topics/i18n/#term-language-code LANGUAGE_CODE = 'en' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree'] DEMO_PAGE_INTRO_TEXT = """ """ ROOMS = [ { 'name': 'session1', 'display_name': 'Survey and tasks', 'participant_label_file': '_rooms/guestList_session.txt', }, ] # 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 = { 'real_world_currency_per_point': 0.04, 'participation_fee': 5.00, 'num_bots': 6, 'doc': "drEffects" } SESSION_CONFIGS = [ { 'name': 'drEffects', 'display_name': "Behavioral effects of descriptive representation", 'num_demo_participants': 2 , 'app_sequence': [ 'demographics', 'survey', 'ret_adding_A01', 'chooseTask_B1', 'ret_adding_B1', 'survey_no_frame', 'payoffs' ], 'task_timer': 300, 'additional_tokens': 50, 'additional_token_reduction': 0.5, 'additional_tokens_calculation': '50 tokens - (20 percent x 0.5 tokens) = 40 tokens', # task B tokens 'amount_tokens': 1, 'amount_tokens_higher': 1.2, 'use_browser_bots': False, } ] # anything you put after the below line will override # oTree's default settings. Use with caution. otree.settings.augment_settings(globals())