This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 679
/
settings_local.py
135 lines (106 loc) · 3.84 KB
/
settings_local.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
125
126
127
128
129
130
131
132
133
134
135
from settings import *
import logging
INTERNAL_IPS = ('127.0.0.1', '192.168.10.1',)
DEBUG = True
DEV = True
TEMPLATE_DEBUG = DEBUG
SERVE_MEDIA = DEBUG
SESSION_COOKIE_SECURE = False
DEMO_UPLOADS_ROOT = '/home/vagrant/uploads/demos'
DEMO_UPLOADS_URL = '/media/uploads/demos/'
PROD_DETAILS_DIR = '/home/vagrant/product_details_json'
MDC_PAGES_DIR = '/home/vagrant/mdc_pages'
DEKIWIKI_ENDPOINT = "http://localhost"
DEKIWIKI_APIKEY = "GFxaNVK37fLPsFEYM7NwdIuNpGIiFTOX"
DEKIWIKI_MOCK = True
GOOGLE_MAPS_API_KEY = "ABQIAAAANRj9BHQi5ireVluCwVy0yRSrufPN8BjQWjkoRva24PCQEXS2OhSXu2BEgUH5PmGOmW71r2-tEuOVuQ"
RECAPTCHA_USE_SSL = False
RECAPTCHA_PUBLIC_KEY = '6LdX8cISAAAAAA9HRXmzrcRSFsUoIK9u0nWpvGS_'
RECAPTCHA_PRIVATE_KEY = '6LdX8cISAAAAACkC1kqYmpeSf-1geTmLzrLnq0t6'
BITLY_USERNAME = 'lmorchard'
BITLY_API_KEY = "R_2653e6351e31d02988b3da31dac6e2c0"
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
#EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
#EMAIL_FILE_PATH = '/home/vagrant/logs/kuma-email.log'
# Uncomment to enable a real celery queue
CELERY_ALWAYS_EAGER = False
INSTALLED_APPS = INSTALLED_APPS + (
"django_extensions",
"debug_toolbar",
"devserver",
)
MIDDLEWARE_CLASSES = (
"debug_toolbar.middleware.DebugToolbarMiddleware",
) + MIDDLEWARE_CLASSES
DEBUG_TOOLBAR_CONFIG = {
"INTERCEPT_REDIRECTS": False,
}
DEBUG_TOOLBAR_PANELS = (
'debug_toolbar.panels.version.VersionDebugPanel',
'debug_toolbar.panels.timer.TimerDebugPanel',
'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
'debug_toolbar.panels.headers.HeaderDebugPanel',
'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
'debug_toolbar.panels.template.TemplateDebugPanel',
#'cache_panel.CachePanel',
'debug_toolbar.panels.sql.SQLDebugPanel',
'debug_toolbar.panels.signals.SignalDebugPanel',
'debug_toolbar.panels.logger.LoggingPanel',
'django_statsd.panel.StatsdPanel',
)
DEVSERVER_MODULES = (
# sql modules interfere with saving some KumaScript templates
#'devserver.modules.sql.SQLRealTimeModule',
#'devserver.modules.sql.SQLSummaryModule',
'devserver.modules.profile.ProfileSummaryModule',
# Modules not enabled by default
#'devserver.modules.ajax.AjaxDumpModule',
#'devserver.modules.profile.MemoryUseModule',
#'devserver.modules.cache.CacheSummaryModule',
#'devserver.modules.profile.LineProfilerModule',
)
# The default database should point to the master.
DATABASES = {
'default': {
'NAME': 'kuma',
'ENGINE': 'django.db.backends.mysql',
'HOST': 'localhost',
'USER': 'kuma',
'PASSWORD': 'kuma',
'OPTIONS': {'init_command': 'SET storage_engine=InnoDB'},
},
}
MIGRATION_DATABASES = {
'wikidb': {
'NAME': 'wikidb',
'ENGINE': 'django.db.backends.mysql',
'HOST': 'localhost',
'USER': 'wikiuser',
'PASSWORD': '2yeOr7ByBUMBiB4z',
},
}
# Use IP:PORT pairs separated by semicolons.
CACHE_BACKEND = 'memcached://localhost:11211?timeout=60'
CONSTANCE_DATABASE_CACHE_BACKEND = CACHE_BACKEND
# This is used to hash some things in Django.
SECRET_KEY = 'jenny8675309'
DEBUG_PROPAGATE_EXCEPTIONS = DEBUG
LOG_LEVEL = logging.DEBUG
logging.basicConfig(
level = logging.DEBUG,
format = '%(asctime)s %(levelname)s %(message)s',
# filename = '/home/vagrant/logs/kuma-django.log',
)
SPHINX_INDEXER = '/usr/local/bin/indexer'
SPHINX_SEARCHD = '/usr/local/bin/searchd'
SEARCH_CACHE_PERIOD = 0
SITE_URL = 'http://developer-dev.mozilla.org'
PROTOCOL = 'http://'
DOMAIN = 'developer-dev.mozilla.org'
# See: https://github.com/mozilla/django-browserid/issues/8 (TODO)
BROWSERID_DISABLE_CERT_CHECK = True
BROWSERID_CACERT_FILE = None
LOGIN_REDIRECT_URL = '/'
LOGIN_REDIRECT_URL_FAILURE = '/'
KUMASCRIPT_URL_TEMPLATE = 'http://localhost:9080/docs/{path}'
STATSD_CLIENT = 'django_statsd.clients.toolbar'