2 Django settings for wsgiexample project.
4 For more information on this file, see
5 https://docs.djangoproject.com/en/1.6/topics/settings/
7 For the full list of settings and their values, see
8 https://docs.djangoproject.com/en/1.6/ref/settings/
11 # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
12 from os.path import abspath, basename, dirname, join, normpath
16 from htsworkflow.util import config_helper
18 DJANGO_ROOT = dirname(dirname(abspath(__file__)))
19 PROJECT_ROOT = dirname(DJANGO_ROOT)
21 INI_OPTIONS = config_helper.HTSWConfig()
23 SECRET_KEY = INI_OPTIONS.setdefaultsecret('frontend', 'secret_key')
24 DEFAULT_API_KEY = INI_OPTIONS.setdefaultsecret('frontend', 'api')
26 # SECURITY WARNING: don't run with debug turned on in production!
27 # Override in settings_local
30 TEMPLATE_DEBUG = False
32 # Application definition
33 AUTHENTICATION_BACKENDS = (
34 'samples.auth_backend.HTSUserModelBackend', )
35 CUSTOM_USER_MODEL = 'samples.HTSUser'
38 'django.contrib.admin',
39 'django.contrib.auth',
40 'django.contrib.contenttypes',
41 'django.contrib.sessions',
42 'django.contrib.messages',
43 'django.contrib.staticfiles',
44 'django.contrib.humanize',
54 MIDDLEWARE_CLASSES = [
55 'django.contrib.sessions.middleware.SessionMiddleware',
56 'django.middleware.common.CommonMiddleware',
57 'django.middleware.csrf.CsrfViewMiddleware',
58 'django.contrib.auth.middleware.AuthenticationMiddleware',
59 'django.contrib.messages.middleware.MessageMiddleware',
60 'django.middleware.clickjacking.XFrameOptionsMiddleware',
64 join(DJANGO_ROOT, 'templates'),
67 ROOT_URLCONF = 'htsworkflow.urls'
69 WSGI_APPLICATION = 'wsgi.application'
72 # https://docs.djangoproject.com/en/1.6/ref/settings/#databases
74 EMAIL_HOST = 'localhost'
76 # Internationalization
77 # https://docs.djangoproject.com/en/1.6/topics/i18n/
79 LANGUAGE_CODE = 'en-us'
81 TIME_ZONE='America/Los_Angeles'
89 # Static files (CSS, JavaScript, Images)
90 # https://docs.djangoproject.com/en/1.6/howto/static-files/
92 join(DJANGO_ROOT, 'static'),
94 STATIC_URL = '/static/'
97 # Application specific settings
100 # How often to recheck the result archive
103 # configure who is sending email and who should get BCCs of announcments
104 NOTIFICATION_SENDER = "noreply@example.com"
107 # Update this in settings_local to point to your flowcell result directory
108 RESULT_HOME_DIR = join(PROJECT_ROOT, 'test', 'result', 'flowcells')