From 44f280c3abf3832a4a43be4fc52dc807f4cb6a70 Mon Sep 17 00:00:00 2001 From: Jacob Magnusson Date: Sun, 4 Nov 2012 12:47:46 +0100 Subject: Add tests for caching of GET/HEAD requests using Django's built in caching framework. Currently fails as some attributes on the Response object are not pickable --- rest_framework/runtests/settings.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rest_framework/runtests/settings.py') diff --git a/rest_framework/runtests/settings.py b/rest_framework/runtests/settings.py index 951b1e72..b48f85e4 100644 --- a/rest_framework/runtests/settings.py +++ b/rest_framework/runtests/settings.py @@ -21,6 +21,12 @@ DATABASES = { } } +CACHES = { + 'default': { + 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', + } +} + # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems. -- cgit v1.2.3