0001-debian-move-stable-settings-to-debian_config.py-2095.patch
debian/debian_config.py | ||
---|---|---|
9 | 9 |
# |
10 | 10 |
execfile('/usr/lib/hobo/debian_config_common.py') |
11 | 11 | |
12 |
# and some hobo parts that are specific to w.c.s. |
|
13 |
TEMPLATES[0]['OPTIONS']['context_processors'] = [ |
|
14 |
'hobo.context_processors.template_vars', |
|
15 |
'hobo.context_processors.theme_base', |
|
16 |
] + TEMPLATES[0]['OPTIONS']['context_processors'] |
|
17 | ||
18 |
if not 'MIDDLEWARE_CLASSES' in globals(): |
|
19 |
MIDDLEWARE_CLASSES = global_settings.MIDDLEWARE_CLASSES |
|
20 | ||
21 |
MIDDLEWARE_CLASSES = ( |
|
22 |
'hobo.middleware.utils.StoreRequestMiddleware', |
|
23 |
'hobo.middleware.xforwardedfor.XForwardedForMiddleware', |
|
24 |
'hobo.middleware.VersionMiddleware', # /__version__ |
|
25 |
'hobo.middleware.cors.CORSMiddleware', |
|
26 |
) + MIDDLEWARE_CLASSES |
|
27 | ||
28 |
CACHES = { |
|
29 |
'default': { |
|
30 |
'BACKEND': 'wcs.cache.WcsTenantCache', |
|
31 |
# add a real Django cache backend, with its parameters if needed |
|
32 |
'REAL_BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', |
|
33 |
'LOCATION': '127.0.0.1:11211', |
|
34 |
} |
|
35 |
} |
|
36 | ||
12 | 37 |
# |
13 | 38 |
# local settings |
14 | 39 |
# |
debian/settings.py | ||
---|---|---|
13 | 13 | |
14 | 14 |
# SECURITY WARNING: don't run with debug turned on in production! |
15 | 15 |
DEBUG = False |
16 |
TEMPLATE_DEBUG = False |
|
17 | 16 | |
18 | 17 |
#ADMINS = ( |
19 | 18 |
# # ('User 1', 'watchdog@example.net'), |
... | ... | |
54 | 53 |
# CSRF_COOKIE_SECURE = True |
55 | 54 |
# SESSION_COOKIE_SECURE = True |
56 | 55 | |
57 |
TEMPLATE_CONTEXT_PROCESSORS = ('django.core.context_processors.request', |
|
58 |
'hobo.context_processors.template_vars', |
|
59 |
'hobo.context_processors.theme_base') + TEMPLATE_CONTEXT_PROCESSORS |
|
60 | ||
61 |
if not 'MIDDLEWARE_CLASSES' in globals(): |
|
62 |
MIDDLEWARE_CLASSES = global_settings.MIDDLEWARE_CLASSES |
|
63 | ||
64 |
MIDDLEWARE_CLASSES = ( |
|
65 |
'hobo.middleware.utils.StoreRequestMiddleware', |
|
66 |
'hobo.middleware.xforwardedfor.XForwardedForMiddleware', |
|
67 |
'hobo.middleware.VersionMiddleware', # /__version__ |
|
68 |
'hobo.middleware.cors.CORSMiddleware', |
|
69 |
) + MIDDLEWARE_CLASSES |
|
70 | ||
71 |
CACHES = { |
|
72 |
'default': { |
|
73 |
'BACKEND': 'wcs.cache.WcsTenantCache', |
|
74 |
# add a real Django cache backend, with its parameters if needed |
|
75 |
'REAL_BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', |
|
76 |
'LOCATION': '127.0.0.1:11211', |
|
77 |
} |
|
78 |
} |
|
79 | ||
80 | 56 |
WCS_LEGACY_CONFIG_FILE = '/etc/wcs/wcs.cfg' |
81 | 57 |
WCS_EXTRA_MODULES = [] |
82 |
- |