|
@ -87,6 +87,7 @@ INSTALLED_APPS = ( |
|
|
'rest_framework', |
|
|
'rest_framework', |
|
|
'reversion', |
|
|
'reversion', |
|
|
'whoosh', |
|
|
'whoosh', |
|
|
|
|
|
'speedinfo', |
|
|
|
|
|
|
|
|
) + SAPL_APPS |
|
|
) + SAPL_APPS |
|
|
|
|
|
|
|
@ -125,8 +126,16 @@ MIDDLEWARE_CLASSES = ( |
|
|
'django.contrib.messages.middleware.MessageMiddleware', |
|
|
'django.contrib.messages.middleware.MessageMiddleware', |
|
|
'django.middleware.clickjacking.XFrameOptionsMiddleware', |
|
|
'django.middleware.clickjacking.XFrameOptionsMiddleware', |
|
|
'django.middleware.security.SecurityMiddleware', |
|
|
'django.middleware.security.SecurityMiddleware', |
|
|
|
|
|
'speedinfo.middleware.ProfilerMiddleware', |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
CACHES = { |
|
|
|
|
|
'default': { |
|
|
|
|
|
'BACKEND': 'speedinfo.backends.proxy_cache', |
|
|
|
|
|
'CACHE_BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', |
|
|
|
|
|
'LOCATION': '/var/tmp/django_cache', |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
REST_FRAMEWORK = { |
|
|
REST_FRAMEWORK = { |
|
|
"UNICODE_JSON": False, |
|
|
"UNICODE_JSON": False, |
|
|