Application custom settingsΒΆ
WAVES-core application defines a waves_settings attributes generated from WAVES_CORE Django settings dictionary.
Note
You may override these values in settings with a dict named WAVES_CORE
Here are the defaults values:
DEFAULTS = { 'VERSION': __version__, 'DB_VERSION': __db_version__, 'DATA_ROOT': join(getattr(settings, 'BASE_DIR', '/tmp'), 'data'), 'JOB_BASE_DIR': join(getattr(settings, 'BASE_DIR', '/tmp'), 'data', 'jobs'), 'BINARIES_DIR': join(getattr(settings, 'BASE_DIR', '/tmp'), 'data', 'bin'), 'SAMPLE_DIR': join(getattr(settings, 'BASE_DIR', '/tmp'), 'data', 'sample'), 'UPLOAD_MAX_SIZE': 20 * 1024 * 1024, 'HOST': HOSTNAME, 'ADMIN_EMAIL': 'admin@your-site.com', 'ALLOW_JOB_SUBMISSION': True, 'APP_NAME': 'WAVES', 'JOBS_MAX_RETRY': 5, 'JOB_LOG_LEVEL': logging.INFO, 'SRV_IMPORT_LOG_LEVEL': logging.INFO, 'KEEP_ANONYMOUS_JOBS': 30, 'KEEP_REGISTERED_JOBS': 120, 'NOTIFY_RESULTS': True, 'REGISTRATION_ALLOWED': True, 'SERVICES_EMAIL': 'waves@atgc-montpellier.fr', 'TEMPLATE_PACK': getattr(settings, 'CRISPY_TEMPLATE_PACK', 'bootstrap3'), 'SECRET_KEY': getattr(settings, 'SECRET_KEY', '')[0:32], 'ADAPTORS_CLASSES': ( 'waves.wcore.adaptors.shell.SshShellAdaptor', 'waves.wcore.adaptors.cluster.LocalClusterAdaptor', 'waves.wcore.adaptors.shell.SshKeyShellAdaptor', 'waves.wcore.adaptors.shell.LocalShellAdaptor', 'waves.wcore.adaptors.cluster.SshClusterAdaptor', 'waves.wcore.adaptors.cluster.SshKeyClusterAdaptor', ), 'PURGE_WAIT': 86400, 'PERMISSION_CLASSES': (), 'MAILER_CLASS': 'waves.wcore.mails.JobMailer', }