From 5490bb8983004ba43a946ba1f3dbcf14c9254439 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 16 Feb 2020 17:34:25 +0100 Subject: Celery: fix extra_settings import --- install/local_settings.py.sample | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'install/local_settings.py.sample') diff --git a/install/local_settings.py.sample b/install/local_settings.py.sample index aecad17a6..7c6bac348 100644 --- a/install/local_settings.py.sample +++ b/install/local_settings.py.sample @@ -39,4 +39,7 @@ DATABASES = { try: from extra_settings import * except ImportError as e: - print('Unable to load extra_settings.py:', e) + try: + from .extra_settings import * # relative import for celery + except ImportError as e: + print('Unable to load extra_settings.py:', e) -- cgit v1.2.3