添加corpid和userid
This commit is contained in:
parent
1be92c914c
commit
d533780a50
|
@ -7,7 +7,6 @@ import django
|
|||
from django.utils.encoding import smart_str, force_str
|
||||
from django.utils.translation import gettext_lazy
|
||||
|
||||
|
||||
django.utils.encoding.smart_text = smart_str
|
||||
django.utils.encoding.force_text = force_str
|
||||
django.utils.translation.ugettext = gettext_lazy
|
||||
|
@ -124,8 +123,7 @@ DATABASES = {
|
|||
REDIS_HOST = '120.26.167.84'
|
||||
REDIS_PORT = 6379
|
||||
REDIS_PASSWORD = 'hzmgkj888888'
|
||||
# REDIS_URI = f'redis://{REDIS_HOST}:{REDIS_PORT}'
|
||||
REDIS_URI = f'redis://[:{REDIS_PASSWORD}]@{REDIS_HOST}:{REDIS_PORT}'
|
||||
REDIS_URI = f'redis://{REDIS_HOST}:{REDIS_PORT}'
|
||||
|
||||
# 缓存配置
|
||||
CACHES = {
|
||||
|
@ -135,6 +133,7 @@ CACHES = {
|
|||
"OPTIONS": {
|
||||
"IGNORE_EXCEPTIONS": True,
|
||||
"CLIENT_CLASS": "django_redis.client.DefaultClient",
|
||||
"PASSWORD": REDIS_PASSWORD,
|
||||
}
|
||||
},
|
||||
"token": {
|
||||
|
@ -143,6 +142,7 @@ CACHES = {
|
|||
"OPTIONS": {
|
||||
"IGNORE_EXCEPTIONS": True,
|
||||
"CLIENT_CLASS": "django_redis.client.DefaultClient",
|
||||
"PASSWORD": REDIS_PASSWORD,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue