@classmethod
def get_config_from_django(cls):
    """
        When not in Django context, this is a no-op, returning None. Otherwise, it attempts to return the `METRICS`
        setting from Django settings, if it exists, or the `metrics` setting from the `SOA_SERVER_SETTINGS` setting
        from Django settings, if it exists. `METRICS` is a standard established by this library. `SOA_SERVER_SETTINGS`
        is a standard established in PySOA, which uses PyMetrics.

        :return: The configuration dict from Django settings, if it exists, or None
        """
    settings = cls.get_django_settings()
    if settings:
        if getattr(settings, 'METRICS', None):
            return settings.METRICS
        elif getattr(settings, 'SOA_SERVER_SETTINGS', None):
            return settings.SOA_SERVER_SETTINGS['metrics']['kwargs']['config']
    return None
