mirror of
https://github.com/Hopiu/django-tos.git
synced 2026-03-16 20:10:24 +00:00
Cache setting for testing middleware
This commit is contained in:
parent
e07fb710a8
commit
74853bee8a
1 changed files with 8 additions and 1 deletions
|
|
@ -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'
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue