Commits

Sławek Ehlert committed 58f254c

development cache

Comments (0)

Files changed (1)

project_name/settings.py

     os.path.join(PROJECT_DIR, "fixtures"),
 ]
 
+CACHES = {
+    'default': { # only for development
+        'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
+        'LOCATION': os.path.join(os.environ.get('TEMP', '/tmp'), '{{ project_name }}_django_cache'),
+    }
+}
+
+SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
 MESSAGE_STORAGE = "django.contrib.messages.storage.session.SessionStorage"
 
 # A sample logging configuration. The only tangible logging