aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/runtests/settings.py
diff options
context:
space:
mode:
authorJacob Magnusson2012-11-04 12:47:46 +0100
committerJacob Magnusson2012-11-04 12:47:46 +0100
commit44f280c3abf3832a4a43be4fc52dc807f4cb6a70 (patch)
tree4f2c3b07739a488786dd050d96d911747b36dac4 /rest_framework/runtests/settings.py
parent746686b0658b47e66c5ff9c884e4aa1afb8123df (diff)
downloaddjango-rest-framework-44f280c3abf3832a4a43be4fc52dc807f4cb6a70.tar.bz2
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
Diffstat (limited to 'rest_framework/runtests/settings.py')
-rw-r--r--rest_framework/runtests/settings.py6
1 files changed, 6 insertions, 0 deletions
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.