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

8 lines
189 B
Python

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