diff --git a/django/core/cache/__init__.py b/django/core/cache/__init__.py index 2c75f6c671..b17ad8185a 100644 --- a/django/core/cache/__init__.py +++ b/django/core/cache/__init__.py @@ -101,6 +101,8 @@ if not settings.CACHES: engine, host, params = parse_backend_uri(settings.CACHE_BACKEND) if engine in backend_classes: engine = 'django.core.cache.backends.%s' % backend_classes[engine] + else: + engine = '%s.CacheClass' % engine defaults = { 'BACKEND': engine, 'LOCATION': host,