Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion jobtastic/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
# For now, let's just say that if Django exists, we should use it.
# Otherwise, try Flask. This definitely needs an actual configuration
# variable so folks can make an explicit decision.
from django.core.cache import cache
from django.core.cache import get_cache
from django.conf import settings
cache = get_cache(getattr(settings, 'JOBTASTIC_CACHE_BACKEND_NAME', 'default'))
HAS_DJANGO = True
except ImportError:
try:
Expand Down