mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 02:38:11 +08:00
Expanding coverage
This commit is contained in:
@@ -24,7 +24,8 @@ INSTALLED_APPS = (
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'django_q'
|
||||
'django_q',
|
||||
'django_redis'
|
||||
)
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
@@ -101,8 +102,21 @@ LOGGING = {
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
# Django Redis
|
||||
CACHES = {
|
||||
"default": {
|
||||
"BACKEND": "django_redis.cache.RedisCache",
|
||||
"LOCATION": "redis://127.0.0.1:6379/0",
|
||||
"OPTIONS": {
|
||||
"CLIENT_CLASS": "django_redis.client.DefaultClient",
|
||||
"PARSER_CLASS": "redis.connection.HiredisParser",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Django Q specific
|
||||
Q_CLUSTER = {'name': 'django_q_test',
|
||||
'cpu_affinity': 1,
|
||||
'testing': True,
|
||||
'log_level': 'DEBUG'}
|
||||
'log_level': 'DEBUG',
|
||||
'django_redis': 'default'}
|
||||
|
||||
Reference in New Issue
Block a user