This commit is contained in:
caoqianming 2022-08-09 08:32:34 +08:00
commit 320dd2a996
1 changed files with 10 additions and 0 deletions

View File

@ -85,6 +85,16 @@ TEMPLATES = [
WSGI_APPLICATION = 'server.wsgi.application' WSGI_APPLICATION = 'server.wsgi.application'
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://localhost:6379/1",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
}
}
# Database # Database
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases # https://docs.djangoproject.com/en/3.0/ref/settings/#databases