Merge branch 'develop' of https://e.coding.net/ctcdevteam/hberp/hberp into develop

This commit is contained in:
shijing 2022-06-16 11:17:23 +08:00
commit 6f16f26a0e
3 changed files with 15 additions and 11 deletions

View File

@ -16,3 +16,4 @@ workalendar==16.2.0
face_recognition==1.3.0 face_recognition==1.3.0
gunicorn==20.1.0 gunicorn==20.1.0
redis==4.1.4 redis==4.1.4
django-redis==5.2.0

View File

@ -195,16 +195,19 @@ AUTHENTICATION_BACKENDS = (
) )
# 缓存配置,有需要可更改为redis # 缓存配置,有需要可更改为redis
# CACHES = { CACHES = {
# "default": { # "default": {
# "BACKEND": "django_redis.cache.RedisCache", # "BACKEND": "django_redis.cache.RedisCache",
# "LOCATION": "redis://127.0.0.1:6379/0", # "LOCATION": "redis://127.0.0.1:6379/0",
# "OPTIONS": { # "OPTIONS": {
# "CLIENT_CLASS": "django_redis.client.DefaultClient", # "CLIENT_CLASS": "django_redis.client.DefaultClient",
# "PICKLE_VERSION": -1
# }
# } # }
# } # }
'default': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
'LOCATION': os.path.join(BASE_DIR, 'temp'),
}
}
# celery配置,celery正常运行必须安装redis # celery配置,celery正常运行必须安装redis
CELERY_BROKER_URL = "redis://127.0.0.1:6379/1" # 任务存储 CELERY_BROKER_URL = "redis://127.0.0.1:6379/1" # 任务存储