mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-04 16:58:11 +08:00
Refactoring to make testing more stable
This commit is contained in:
@@ -3,6 +3,14 @@ from multiprocessing import cpu_count
|
||||
|
||||
VERSION = '0.1.0'
|
||||
|
||||
"""
|
||||
Prefixes the Redis keys. Defaults to django_q
|
||||
"""
|
||||
try:
|
||||
PREFIX = settings.Q_PREFIX
|
||||
except AttributeError:
|
||||
PREFIX = 'django_q'
|
||||
|
||||
"""
|
||||
Sets the logging level for the app
|
||||
"""
|
||||
@@ -41,3 +49,8 @@ try:
|
||||
COMPRESSED = settings.Q_COMPRESSED
|
||||
except AttributeError:
|
||||
COMPRESSED = False
|
||||
|
||||
try:
|
||||
USE_TZ = settings.USE_TZ
|
||||
except AttributeError:
|
||||
USE_TZ = False
|
||||
|
||||
Reference in New Issue
Block a user