mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-07 18:58:12 +08:00
Remove arrow dependency, update packages, set up testing with compose (#17)
This commit is contained in:
@@ -106,11 +106,16 @@ LOGGING = {
|
||||
|
||||
STATIC_URL = "/static/"
|
||||
|
||||
REDIS_HOST = os.environ.get("REDIS_HOST", "redis")
|
||||
|
||||
MONGO_HOST = os.environ.get("MONGO_HOST", "mongo")
|
||||
|
||||
|
||||
# Django Redis
|
||||
CACHES = {
|
||||
"default": {
|
||||
"BACKEND": "django_redis.cache.RedisCache",
|
||||
"LOCATION": "redis://127.0.0.1:6379/0",
|
||||
"LOCATION": f"redis://{REDIS_HOST}:6379/0",
|
||||
"OPTIONS": {
|
||||
"CLIENT_CLASS": "django_redis.client.DefaultClient",
|
||||
"PARSER_CLASS": "redis.connection.HiredisParser",
|
||||
@@ -125,4 +130,5 @@ Q_CLUSTER = {
|
||||
"testing": True,
|
||||
"log_level": "DEBUG",
|
||||
"django_redis": "default",
|
||||
"redis": f"redis://{REDIS_HOST}:6379/0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user