938ed4e25ea4c170f557f94c25d5b399a1e3d081
[htsworkflow.git] / gaworkflow / frontend / settings.py
1 import os
2
3 # Django settings for elandifier project.
4
5 DEBUG = True
6 TEMPLATE_DEBUG = DEBUG
7
8 ADMINS = (
9      ('Rami Rauch', 'rrauch@stanford.edu'),
10 )
11
12 MANAGERS = ADMINS
13
14 EMAIL_HOST = 'myerslab.stanford.edu'
15 EMAIL_PORT = 25
16
17 DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
18 DATABASE_NAME = os.path.abspath('/gaworkflow/dev_fctracker.db')             # Or path to database file if using sqlite3.
19 DATABASE_USER = ''             # Not used with sqlite3.
20 DATABASE_PASSWORD = ''         # Not used with sqlite3.
21 DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
22 DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
23
24 # Local time zone for this installation. Choices can be found here:
25 # http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
26 # although not all variations may be possible on all operating systems.
27 # If running in a Windows environment this must be set to the same as your
28 # system time zone.
29 TIME_ZONE = 'America/Los_Angeles'
30
31 # Language code for this installation. All choices can be found here:
32 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
33 # http://blogs.law.harvard.edu/tech/stories/storyReader$15
34 LANGUAGE_CODE = 'en-us'
35
36 SITE_ID = 1
37
38 # If you set this to False, Django will make some optimizations so as not
39 # to load the internationalization machinery.
40 USE_I18N = True
41
42 # Absolute path to the directory that holds media.
43 # Example: "/home/media/media.lawrence.com/"
44 MEDIA_ROOT = ''
45
46 # URL that handles the media served from MEDIA_ROOT.
47 # Example: "http://media.lawrence.com"
48 MEDIA_URL = ''
49
50 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
51 # trailing slash.
52 # Examples: "http://foo.com/media/", "/media/".
53 ADMIN_MEDIA_PREFIX = '/media/'
54
55 # Make this unique, and don't share it with anybody.
56 SECRET_KEY = '(ekv^=gf(j9f(x25@a7r+8)hqlz%&_1!tw^75l%^041#vi=@4n'
57
58 # List of callables that know how to import templates from various sources.
59 TEMPLATE_LOADERS = (
60     'django.template.loaders.filesystem.load_template_source',
61     'django.template.loaders.app_directories.load_template_source',
62 #     'django.template.loaders.eggs.load_template_source',
63 )
64
65 MIDDLEWARE_CLASSES = (
66     'django.middleware.common.CommonMiddleware',
67     'django.contrib.sessions.middleware.SessionMiddleware',
68     'django.contrib.auth.middleware.AuthenticationMiddleware',
69     'django.middleware.doc.XViewMiddleware',
70 )
71
72 ROOT_URLCONF = 'gaworkflow.frontend.urls'
73
74 TEMPLATE_DIRS = (
75     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
76     # Always use forward slashes, even on Windows.
77     # Don't forget to use absolute paths, not relative paths.
78     os.path.abspath("../../templates"),
79 )
80
81 INSTALLED_APPS = (
82     'django.contrib.admin',
83     'django.contrib.auth',
84     'django.contrib.contenttypes',
85     'django.contrib.sessions',
86     'django.contrib.sites',
87     'gaworkflow.frontend.fctracker',
88     'gaworkflow.frontend.exp_track',
89     'gaworkflow.frontend.analys_track', 
90     'gaworkflow.frontend.htsw_reports',
91     'django.contrib.databrowse',
92 )
93
94 # Project specific settings
95 ALLOWED_IPS = {"74.51.115.100":"HudsonAlpha","64.89.97.100":"HudsonAlpha","127.0.0.1":"Localhost"}
96 ALLOWED_ANALYS_IPS = {"171.65.76.194":"Stanford Analysis 1","127.0.0.1":"Localhost"}
97 #UPLOADTO_HOME = os.path.abspath('../../uploads')
98 #UPLOADTO_CONFIG_FILE = os.path.join(UPLOADTO_HOME, 'eland_config')
99 #UPLOADTO_ELAND_RESULT_PACKS = os.path.join(UPLOADTO_HOME, 'eland_results')
100 #UPLOADTO_BED_PACKS = os.path.join(UPLOADTO_HOME, 'bed_packs')
101