From ecea85f8cae86de8016377e67c7c3224268d4416 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 17 Feb 2020 15:20:11 +0100 Subject: [PATCH] lib/config: remove autoreload handler as this API is gone in django 3 --- passbook/lib/config.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/passbook/lib/config.py b/passbook/lib/config.py index fe9871d1b..b09d9a456 100644 --- a/passbook/lib/config.py +++ b/passbook/lib/config.py @@ -8,7 +8,6 @@ from urllib.parse import urlparse import yaml from django.conf import ImproperlyConfigured -from django.utils.autoreload import autoreload_started from structlog import get_logger SEARCH_PATHS = ["passbook/lib/default.yml", "/etc/passbook/config.yml", "",] + glob( @@ -142,12 +141,3 @@ class ConfigLoader: CONFIG = ConfigLoader() - - -def signal_handler(sender, **_): - """Add all loaded config files to autoreload watcher""" - for path in CONFIG.loaded_file: - sender.watch_file(path) - - -autoreload_started.connect(signal_handler)