update to django 3.0 & asgi
This commit is contained in:
@@ -21,8 +21,6 @@ INSTALLED_APPS = [
|
||||
'bootstrap4',
|
||||
'crispy_forms',
|
||||
'djconfig',
|
||||
'django_celery_results',
|
||||
'django_celery_beat',
|
||||
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
@@ -93,10 +91,18 @@ STATICFILES_FINDERS = [
|
||||
|
||||
CACHES = {
|
||||
"default": {
|
||||
"BACKEND": "django_redis.cache.RedisCache",
|
||||
"LOCATION": "redis://127.0.0.1:6379/4",
|
||||
"BACKEND": "redis_cache.RedisCache",
|
||||
"LOCATION": ["127.0.0.1:6379"],
|
||||
"OPTIONS": {
|
||||
"CLIENT_CLASS": "django_redis.client.DefaultClient",
|
||||
'DB': 4,
|
||||
'PARSER_CLASS': 'redis.connection.HiredisParser',
|
||||
'CONNECTION_POOL_CLASS': 'redis.BlockingConnectionPool',
|
||||
'CONNECTION_POOL_CLASS_KWARGS': {
|
||||
'max_connections': 50,
|
||||
'timeout': 20,
|
||||
},
|
||||
'MAX_CONNECTIONS': 1000,
|
||||
'PICKLE_VERSION': -1,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user