forked from AustralianDisabilityLimited/unisubs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_settings.py
More file actions
52 lines (36 loc) · 1.15 KB
/
Copy pathtest_settings.py
File metadata and controls
52 lines (36 loc) · 1.15 KB
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
from settings import *
#from dev_settings import *
ROOT_URLCONF = 'urls'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': rel('unisubs.sqlite3'),
}
}
CACHE_PREFIX = "testcache"
CACHE_TIMEOUT = 60
HAYSTACK_SOLR_URL = 'http://localhost:8983/solr/testing'
CELERY_ALWAYS_EAGER = True
INSTALLED_APPS += ('django_nose', )
INSTALLED_APPS = list(INSTALLED_APPS)
INSTALLED_APPS.remove('unisubs')
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
SITE_ID = 4
SITE_NAME = 'unisubs-dev'
TWITTER_CONSUMER_KEY = '6lHYqtxzQBD3lQ55Chi6Zg'
TWITTER_CONSUMER_SECRET = 'ApkJPIIbBKp3Wph0JBoAg2Nsk1Z5EG6PFTevNpd5Y00'
VIMEO_API_KEY = 'e1a46f832f8dfa99652781ee0b39df12'
VIMEO_API_SECRET = 'bdaeb531298eeee1'
PISTON_DISPLAY_ERRORS = True
COMPRESS_URL = "/"
RECAPTCHA_SECRET = ""
STATIC_URL = ""
COMPRESS_MEDIA = not DEBUG
STATIC_URL_BASE = STATIC_URL
if COMPRESS_MEDIA:
STATIC_URL += "%s/%s/" % (COMPRESS_OUTPUT_DIRNAME, LAST_COMMIT_GUID.split("/")[1])
import logging
logging.getLogger('pysolr').setLevel(logging.ERROR)
logging.getLogger('requests').setLevel(logging.ERROR)
logging.disable(logging.INFO)
logging.disable(logging.DEBUG)