from os import environ import socket # Only for development DEV_MACHINE = socket.gethostname() in ['lagavulin', 'awesom-o-4000'] TIMOUT_FAST = 1 DEV_FACTOR = 1 + 99 * DEV_MACHINE SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=0.06, participation_fee=5.00, green_wait_timeout=15, repeat_timeout=10, reporting_timeout=10, blue_decision_timeout=40, green_decision_timeout=30, green_judgement_timeout=30, doc="" ) SESSION_CONFIGS = [ dict( name='scrutiny_low', display_name="Scrutiny_low", num_demo_participants=2, app_sequence=['scrutiny', 'survey'], high_public_scrutiny=False, ), dict( name='scrutiny_high', display_name="Scrutiny_high", num_demo_participants=2, app_sequence=['scrutiny', 'survey'], high_public_scrutiny=True, ), dict( name='survey', display_name='Survey', num_demo_participants=1, app_sequence=['survey'], ), ] # 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 = '5nk9&me9%8ae==7$32oc(-qc-%s%)4%lo@5c@53kloxd@#8+7h' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree'] # Needed for production if environ.get('OTREE_PRODUCTION') == '1' and \ environ.get('OTREE_AUTH_LEVEL') == 'STUDY': # Needed for production on HPC USE_X_FORWARDED_HOST = True SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')