import os from os import environ # import dj_database_url # import otree.settings # pip install xlrd # import xlrd # to activate sentry SENTRY_DSN = 'http://dc47b6d4cd0e4f57bdf965286e6f629a:c04b645ccd5b458da917b5aa9c2d49bd@sentry.otree.org/295' # 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': 1.00, 'participation_fee': 2.50, # make this app dependent 'doc': "", } SESSION_CONFIGS = [ # { # 'name': 'MRE1', # 'display_name': 'MRE1', # 'num_demo_participants': 12, # 'app_sequence': ['MRE1'] # }, { 'name': 'FR1', 'display_name': 'FR1', 'num_demo_participants': 48, 'app_sequence': ['FR1'], 'participation_fee' : 2.00 #changes the participation fee to 3.00 instead of the standard 2.50 } # { # 'name': 'PRE2', # 'display_name': "PRE2", # 'num_demo_participants': 16, # 'app_sequence': ['PRE2'], # 'participation_fee' : 3.00 #changes the participation fee to 3.00 instead of the standard 2.50 # } ] # see the end of this file for the inactive session configs # ISO-639 code # ''' # LANGUAGE_CODE = 'de' # for example: de, fr, ja, ko, zh-hans # REAL_WORLD_CURRENCY_CODE = 'EUR' # e.g. EUR, GBP, CNY, JPY # USE_POINTS = False # ''' LANGUAGE_CODE = 'en' REAL_WORLD_CURRENCY_CODE = 'GBP' # e.g. EUR, GBP, CNY, JPY USE_POINTS = False ROOM_DEFAULTS = {} ROOMS = [ dict( name='Experiment', display_name='Experiment' # participant_label_file='_rooms/econ101.txt', ) ] # AUTH_LEVEL: # this setting controls which parts of your site are freely accessible, # and which are password protected: # - If it's not set (the default), then the whole site is freely accessible. # - 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 it 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, but not access the rest # of the admin interface, set it to DEMO. # for flexibility, you can set it in the environment variable OTREE_AUTH_LEVEL AUTH_LEVEL = environ.get('OTREE_AUTH_LEVEL') 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') in {None, '', '1'}) # to turn debug info on DEBUG = (environ.get('OTREE_PRODUCTION') in {None, '', '0'}) # to turn debug info off DEMO_PAGE_INTRO_HTML = """
Here are various games implemented with oTree. These games are all open source, and you can modify them as you wish.
""" # don't share this with anybody. SECRET_KEY = 'f6j&u9ui=cewq3j_#gtyccc=sv)(06gfg$1(oxi5cr^4s$q@^c' BASE_DIR = os.path.dirname(os.path.abspath(__file__)) # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree'] # otree.settings.augment_settings(globals())