This change was necessary for the test suite to run with Django 1.6.

With the way the django_statsd.__init__ is layed, django_statsd.patches got imported before settings.configure was triggered, therefore this line was failing:

    patches = getattr(settings, 'STATSD_PATCHES', [])

That caused an error because settings were not yet configured at the time of running the suite. A possible (and probably better solution) would be to move this to the top of tests.py.