Cache setting for testing middleware

This commit is contained in:
Nicholas Serra 2017-04-04 13:46:18 -04:00
parent e07fb710a8
commit 74853bee8a
No known key found for this signature in database
GPG key ID: EEDDA4EE375C6D12

View file

@ -47,7 +47,14 @@ if not settings.configured:
],
ROOT_URLCONF='tos.tests.test_urls',
LOGIN_URL='/login/',
SITE_ID='1'
SITE_ID='1',
CACHES = {
'tos': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'unique-snowflake',
}
},
TOS_CACHE_NAME = 'tos'
)