/
onebox.py
60 lines (48 loc) · 1.26 KB
/
onebox.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
from .base import * # noqa
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(SITE_ROOT, 'dev.db'),
}
}
REDIS = {
'host': 'localhost',
'port': 6379,
'db': 0,
}
BROKER_URL = 'redis://localhost:6379/0'
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
CELERY_ALWAYS_EAGER = False
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
'PATH': os.path.join(SITE_ROOT, 'whoosh_index'),
},
}
CACHES = {
'default': {
'BACKEND': 'redis_cache.cache.RedisCache',
'LOCATION': 'localhost:6379',
'PREFIX': 'docs',
'OPTIONS': {
'DB': 1,
},
},
}
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
SLUMBER_API_HOST = 'http://localhost:8000'
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTOCOL", "https")
SESSION_COOKIE_DOMAIN = None
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
SLUMBER_USERNAME = 'test'
SLUMBER_PASSWORD = 'test'
SLUMBER_API_HOST = 'http://localhost:8000'
WEBSOCKET_HOST = 'localhost:8088'
IMPORT_EXTERNAL_DATA = False
DONT_HIT_DB = False
#PRODUCTION_DOMAIN = 'readthedocs.org'
#USE_SUBDOMAIN = True
try:
from local_settings import * # noqa
except:
pass