5 # define your defaults here
6 options = ConfigParser.SafeConfigParser(
7 { 'email_host': 'myerslab.stanford.edu',
9 'database_engine': 'sqlite3',
11 os.path.abspath('/htsworkflow/htswfrontend/dev_fctracker.db'),
14 options.read([os.path.expanduser("~/.htsworkflow.ini"),
15 '/etc/htsworkflow.ini',])
17 # Django settings for elandifier project.
20 TEMPLATE_DEBUG = DEBUG
23 ('Rami Rauch', 'rrauch@stanford.edu'),
28 EMAIL_HOST = options.get('frontend', 'email_host')
29 EMAIL_PORT = int(options.get('frontend', 'email_port'))
31 # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
32 DATABASE_ENGINE = options.get('frontend', 'database_engine')
34 # Or path to database file if using sqlite3.
35 DATABASE_NAME = options.get('frontend', 'database_name' )
36 DATABASE_USER = '' # Not used with sqlite3.
37 DATABASE_PASSWORD = '' # Not used with sqlite3.
38 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
39 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
41 # Local time zone for this installation. Choices can be found here:
42 # http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
43 # although not all variations may be possible on all operating systems.
44 # If running in a Windows environment this must be set to the same as your
46 TIME_ZONE = 'America/Los_Angeles'
48 # Language code for this installation. All choices can be found here:
49 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
50 # http://blogs.law.harvard.edu/tech/stories/storyReader$15
51 LANGUAGE_CODE = 'en-us'
55 # If you set this to False, Django will make some optimizations so as not
56 # to load the internationalization machinery.
59 # Absolute path to the directory that holds media.
60 # Example: "/home/media/media.lawrence.com/"
63 # URL that handles the media served from MEDIA_ROOT.
64 # Example: "http://media.lawrence.com"
67 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
69 # Examples: "http://foo.com/media/", "/media/".
70 ADMIN_MEDIA_PREFIX = '/media/'
72 # Make this unique, and don't share it with anybody.
73 SECRET_KEY = '(ekv^=gf(j9f(x25@a7r+8)hqlz%&_1!tw^75l%^041#vi=@4n'
75 # List of callables that know how to import templates from various sources.
77 'django.template.loaders.filesystem.load_template_source',
78 'django.template.loaders.app_directories.load_template_source',
79 # 'django.template.loaders.eggs.load_template_source',
82 MIDDLEWARE_CLASSES = (
83 'django.middleware.common.CommonMiddleware',
84 'django.contrib.sessions.middleware.SessionMiddleware',
85 'django.contrib.auth.middleware.AuthenticationMiddleware',
86 'django.middleware.doc.XViewMiddleware',
89 ROOT_URLCONF = 'htswfrontend.urls'
92 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
93 # Always use forward slashes, even on Windows.
94 # Don't forget to use absolute paths, not relative paths.
95 os.path.abspath("../templates"),
99 'django.contrib.admin',
100 'django.contrib.auth',
101 'django.contrib.contenttypes',
102 'django.contrib.sessions',
103 'django.contrib.sites',
104 'htswfrontend.fctracker',
105 'htswfrontend.exp_track',
106 'htswfrontend.analys_track',
107 'htswfrontend.htsw_reports',
108 'django.contrib.databrowse',
111 # Project specific settings
112 ALLOWED_IPS = {"74.51.115.100":"HudsonAlpha","64.89.97.100":"HudsonAlpha","127.0.0.1":"Localhost"}
113 ALLOWED_ANALYS_IPS = {"171.65.76.194":"Stanford Analysis 1","127.0.0.1":"Localhost"}
114 #UPLOADTO_HOME = os.path.abspath('../../uploads')
115 #UPLOADTO_CONFIG_FILE = os.path.join(UPLOADTO_HOME, 'eland_config')
116 #UPLOADTO_ELAND_RESULT_PACKS = os.path.join(UPLOADTO_HOME, 'eland_results')
117 #UPLOADTO_BED_PACKS = os.path.join(UPLOADTO_HOME, 'bed_packs')