Merge branch 'develop' of https://e.coding.net/ctcdevteam/hberp/hberp into develop
This commit is contained in:
commit
6f16f26a0e
|
@ -16,3 +16,4 @@ workalendar==16.2.0
|
|||
face_recognition==1.3.0
|
||||
gunicorn==20.1.0
|
||||
redis==4.1.4
|
||||
django-redis==5.2.0
|
||||
|
|
|
@ -195,16 +195,19 @@ AUTHENTICATION_BACKENDS = (
|
|||
)
|
||||
|
||||
# 缓存配置,有需要可更改为redis
|
||||
# CACHES = {
|
||||
CACHES = {
|
||||
# "default": {
|
||||
# "BACKEND": "django_redis.cache.RedisCache",
|
||||
# "LOCATION": "redis://127.0.0.1:6379/0",
|
||||
# "OPTIONS": {
|
||||
# "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_BROKER_URL = "redis://127.0.0.1:6379/1" # 任务存储
|
||||
|
|
Loading…
Reference in New Issue