Private
Public Access
1
0

some optimizations

This commit is contained in:
Sander Roosendaal
2017-06-16 08:04:06 +02:00
parent 4b0707b7f4
commit b7487f1f77
4 changed files with 48 additions and 38 deletions

View File

@@ -54,7 +54,6 @@ INSTALLED_APPS = [
'django_rq',
'django_rq_dashboard',
'translation_manager',
# 'debug_toolbar',
'django_mailbox',
'rest_framework',
'rest_framework_swagger',
@@ -90,7 +89,6 @@ MIDDLEWARE_CLASSES = [
'django.contrib.messages.middleware.MessageMiddleware',
'async_messages.middleware.AsyncMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
# 'debug_toolbar.middleware.DebugToolbarMiddleware',
]
ROOT_URLCONF = 'rowsandall_app.urls'

View File

@@ -50,6 +50,10 @@ TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
ALLOWED_HOSTS = ['localhost']
INSTALLED_APPS += ['debug_toolbar',]
MIDDLEWARE_CLASSES += ['debug_toolbar.middleware.DebugToolbarMiddleware',]
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',