Browse Source

Fix #1836 (#1837)

pull/1853/head
Victor Fabre 7 years ago
committed by Edward
parent
commit
268beaa708
  1. 1
      requirements/requirements.txt
  2. 9
      sapl/settings.py

1
requirements/requirements.txt

@ -35,3 +35,4 @@ gunicorn==19.6.0
django-reversion==2.0.8
WeasyPrint==0.42
whoosh==2.7.4
git+git://github.com/interlegis/django-speedinfo.git

9
sapl/settings.py

@ -88,6 +88,7 @@ INSTALLED_APPS = (
'rest_framework',
'reversion',
'whoosh',
'speedinfo',
) + SAPL_APPS
@ -126,8 +127,16 @@ MIDDLEWARE_CLASSES = (
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'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 = {
"UNICODE_JSON": False,

Loading…
Cancel
Save