| 1 |
SECRET_KEY = "django_tests_secret_key" |
| 2 |
CACHES = { |
| 3 |
"default": { |
| 4 |
"BACKEND": "django_redis.cache.RedisCache", |
| 5 |
"LOCATION": ["redis://127.0.0.1:6379?db=1", "redis://127.0.0.1:6379?db=1"], |
| 6 |
"OPTIONS": {"CLIENT_CLASS": "django_redis.client.DefaultClient"}, |
| 7 |
}, |
| 8 |
"doesnotexist": { |
| 9 |
"BACKEND": "django_redis.cache.RedisCache", |
| 10 |
"LOCATION": "redis://127.0.0.1:56379?db=1", |
| 11 |
"OPTIONS": {"CLIENT_CLASS": "django_redis.client.DefaultClient"}, |
| 12 |
}, |
| 13 |
"sample": { |
| 14 |
"BACKEND": "django_redis.cache.RedisCache", |
| 15 |
"LOCATION": "redis://127.0.0.1:6379:1,redis://127.0.0.1:6379:1", |
| 16 |
"OPTIONS": {"CLIENT_CLASS": "django_redis.client.DefaultClient"}, |
| 17 |
}, |
| 18 |
"with_prefix": { |
| 19 |
"BACKEND": "django_redis.cache.RedisCache", |
| 20 |
"LOCATION": "redis://127.0.0.1:6379?db=1", |
| 21 |
"OPTIONS": {"CLIENT_CLASS": "django_redis.client.DefaultClient"}, |
| 22 |
"KEY_PREFIX": "test-prefix", |
| 23 |
}, |
| 24 |
} |
| 25 |
|
| 26 |
# Include `django.contrib.auth` and `django.contrib.contenttypes` for mypy / |
| 27 |
# django-stubs. |
| 28 |
|
| 29 |
# See: |
| 30 |
# - https://github.com/typeddjango/django-stubs/issues/318 |
| 31 |
# - https://github.com/typeddjango/django-stubs/issues/534 |
| 32 |
INSTALLED_APPS = [ |
| 33 |
"django.contrib.auth", |
| 34 |
"django.contrib.contenttypes", |
| 35 |
"django.contrib.sessions", |
| 36 |
] |
| 37 |
|
| 38 |
USE_TZ = False |