lib/config: remove autoreload handler as this API is gone in django 3

This commit is contained in:
Jens Langhammer 2020-02-17 15:20:11 +01:00
parent 5dfa141e35
commit ecea85f8ca
1 changed files with 0 additions and 10 deletions

View File

@ -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)