diff options
| author | Tom Christie <tom@tomchristie.com> | 2015-09-02 13:20:46 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-18 07:44:39 -0400 |
| commit | b02f08e02c34bcf19444c15b54c5f64ddd4c9ef2 (patch) | |
| tree | a5abe6749a8c1880c9117fddcef7741e9593888d /django/core/cache | |
| parent | f33b3ebd5302fe5821dd796156b0be66c5aebec9 (diff) | |
Fixed #25034 -- Converted caches ImproperlyConfigured error to a system check.
Diffstat (limited to 'django/core/cache')
| -rw-r--r-- | django/core/cache/__init__.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/django/core/cache/__init__.py b/django/core/cache/__init__.py index 93a887a058..26897ff850 100644 --- a/django/core/cache/__init__.py +++ b/django/core/cache/__init__.py @@ -19,7 +19,6 @@ from django.core import signals from django.core.cache.backends.base import ( BaseCache, CacheKeyWarning, InvalidCacheBackendError, ) -from django.core.exceptions import ImproperlyConfigured from django.utils.module_loading import import_string __all__ = [ @@ -29,9 +28,6 @@ __all__ = [ DEFAULT_CACHE_ALIAS = 'default' -if DEFAULT_CACHE_ALIAS not in settings.CACHES: - raise ImproperlyConfigured("You must define a '%s' cache" % DEFAULT_CACHE_ALIAS) - def _create_cache(backend, **kwargs): try: |
