Refactoring to make testing more stable

This commit is contained in:
Ilan Steemers
2015-06-23 21:12:08 +02:00
parent 97a4b27f68
commit 0ed1da8f05
14 changed files with 327 additions and 71 deletions
+13
View File
@@ -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