From d5250dfd0b819c9c4d1987cf8e26cccdf78453fb Mon Sep 17 00:00:00 2001 From: Tris Date: Mon, 22 Mar 2021 11:43:49 +1100 Subject: [PATCH] Fixed settings --- byostorage/cached.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/byostorage/cached.py b/byostorage/cached.py index 95f5b75..fba18e3 100644 --- a/byostorage/cached.py +++ b/byostorage/cached.py @@ -15,7 +15,7 @@ class CachedStorage(Storage): def __init__(self, remote=None, cachedir=None, expires=600): if not remote: - remote = getattr(settings, 'CACHED_STORAGE_REMOTE') + remote = getattr(settings, 'CACHED_STORAGE_REMOTE', None) if not cachedir: cachedir = getattr(settings, 'CACHED_STORAGE_DIR', 'cache')