mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
Merge bf36fe9132 into 75bf2f3c3b
This commit is contained in:
commit
1e2ca2a1a1
1 changed files with 4 additions and 1 deletions
|
|
@ -6,7 +6,10 @@ from dbtemplates.conf import settings
|
|||
|
||||
|
||||
def get_cache_backend():
|
||||
return get_cache(settings.CACHE_BACKEND)
|
||||
if hasattr(settings, "CACHES") and "dbtemplates" in settings.CACHES:
|
||||
backend = settings.CACHES["dbtemplates"]["BACKEND"]
|
||||
return get_cache(backend)
|
||||
return get_cache()
|
||||
|
||||
cache = get_cache_backend()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue