Browse Source

Fix #1836 (#1837)

pull/1866/head
Victor Fabre 7 years ago
committed by Edward Ribeiro
parent
commit
566af94dd8
  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 django-reversion==2.0.8
WeasyPrint==0.42 WeasyPrint==0.42
whoosh==2.7.4 whoosh==2.7.4
git+git://github.com/interlegis/django-speedinfo.git

9
sapl/settings.py

@ -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,

Loading…
Cancel
Save