debian-django-statsd-mozilla/django_statsd/patches/__init__.py

12 lines
259 B
Python

from django.conf import settings
try:
from importlib import import_module
except ImportError:
from django.utils.importlib import import_module
patches = getattr(settings, 'STATSD_PATCHES', [])
for patch in patches:
import_module(patch).patch()