import os from os import environ # 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'] STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage' BASE_DIR = 'C:/Users/Moritz/oTree/Otree/' MEDIA_ROOT= 'C:/Users/Moritz/oTree/Otree/media' MEDIA_URL='media/' SESSION_CONFIG_DEFAULTS = { 'real_world_currency_per_point': 1, 'participation_fee': 0.00, 'doc': "", } SESSION_CONFIGS = [ dict( name='correlation', display_name='correlation_effects', num_demo_participants=15, app_sequence=['correlation', 'questionnaire_3'], use_browser_bots=False, # app_sequence=['correlation', 'questionnaire_3'] ), # need module numpy ] # see the end of this file for the inactive session configs # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPYe REAL_WORLD_CURRENCY_CODE = 'USD' USE_POINTS = True ROOMS = [ { 'name': 'econ101', 'display_name': 'Econ 101 class', 'participant_label_file': '_rooms/econ101.txt', }, { 'name': 'live_demo', 'display_name': 'Room for live demo (no participant labels)', }, { 'name': 'RUC', 'display_name': 'RUC', 'participant_label_file': '_rooms/RUC.txt', }, { 'name': 'RUC_Secure', 'display_name': 'RUC secure', 'participant_label_file': '_rooms/RUC.txt', 'use_secure_urls': True, }, ] # if environ.get('OTREE_PRODUCTION') not in {None, '', '0'}: # DEBUG = False # else: # DEBUG = True # # DEBUG = False OTREE_PRODUCTION = 0 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 = """ Here are various games implemented with oTree. These games are open source, and you can modify them as you wish. """ # don't share this with anybody. SECRET_KEY = 'p@aj&3*3^m4i5=xed7oq2lpiz7$f4w@4&j6*(wa46s5ga@h&et' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']