forked from LibraryOfCongress/chronam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings_jenkins.py
124 lines (93 loc) · 2.97 KB
/
settings_jenkins.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import os
def abs_path(path):
import os
_root = os.path.abspath(os.path.dirname(__file__))
return os.path.join(_root, path)
DIRNAME = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
)
MANAGERS = ADMINS
TIME_ZONE = 'America/New_York'
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True
USE_L10N = True
STATIC_URL = '/media/'
STATIC_ROOT = os.path.join(DIRNAME, '.static-media')
MEDIA_ROOT = ''
MEDIA_URL = ''
#ADMIN_MEDIA_PREFIX = '/media/'
ROOT_URLCONF = 'chronam.urls'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'chronam',
'USER': 'chronam',
'PASSWORD': 'chronam',
}
}
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'px2@!q2(m5alb$0=)h@u*80mmf9cd-nn**^y4j2j&+_8h^n_0f'
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.http.ConditionalGetMiddleware',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'chronam.core.context_processors.get_search_form',
'chronam.core.context_processors.extra_request_info',
'chronam.core.context_processors.newspaper_info',
)
TEMPLATE_DIRS = (
os.path.join(DIRNAME, 'templates'),
)
INSTALLED_APPS = (
'south',
'django.contrib.humanize',
'django.contrib.staticfiles',
'djcelery',
'djkombu',
'chronam.core',
)
BROKER_TRANSPORT = "django"
THUMBNAIL_WIDTH = 200
DEFAULT_TTL_SECONDS = 86400 # 1 day
PAGE_IMAGE_TTL_SECONDS = 60 * 60 * 24 * 7 * 2 # 2 weeks
API_TTL_SECONDS = 60 * 60 # 1 hour
MEMORIOUS_REPOSITORIES = {"default": '/opt/chronam/'}
MEMORIOUS_DEBUG = True
USE_TIFF = False
SOUTH_TESTS_MIGRATE = False
ESSAYS_FEED = "http://ndnp-essays.rdc.lctl.gov/feed/"
CACHE_BACKEND = 'file:///var/tmp/django_cache?timeout=100'
IS_PRODUCTION = False
CTS_USERNAME = 'chronam'
CTS_PASSWORD = 'chronam'
CTS_PROJECT_ID = 'ndnp'
CTS_QUEUE = 'ndnpingestqueue'
CTS_SERVICE_TYPE = 'ingest.NdnpIngest.ingest'
CTS_URL = "https://cts.loc.gov/transfer/"
MAX_BATCHES = 0
SHARETOOL_URL = "http://cdn.loc.gov/share/sites/dUcuwr5p/share-jquery-min.js"
OMNITURE_SCRIPT = "http://www.loc.gov:8081/global/s_code.js"
DEFAULT_TTL_SECONDS = 60 * 60 * 24
PAGE_IMAGE_TTL_SECONDS = 60 * 60 * 24
FEED_TTL_SECONDS = 60 * 60 * 24 * 7
SOLR = "http://localhost:8080/solr"
SOLR_LANGUAGES = ("eng", "fre", "ger", "ita", "spa")
DOCUMENT_ROOT = "/opt/chronam/static"
STORAGE = '/var/lib/jenkins/jobs/chronam/chronam/data/'
STORAGE_URL = '/data/'
BATCH_STORAGE = os.path.join(STORAGE, "batches")
BIB_STORAGE = os.path.join(STORAGE, "bib")
OCR_DUMP_STORAGE = os.path.join(STORAGE, "ocr")
COORD_STORAGE = os.path.join(STORAGE, "word_coordinates")
TEMP_TEST_DATA = os.path.join(STORAGE, "temp_test_data")
BASE_CRUMBS = [{'label':'Home', 'href': '/'}]