def import_prefs():
    settings_locals = get_frame_locals(3)

    project_package = settings_locals['__package__']  # Expected project layout introduced in Django 1.4
    if not project_package:
        # Fallback to old layout.
        project_package = os.path.split(os.path.dirname(settings_locals['__file__']))[-1]

    # Try to import project-wide prefs.
    import_module(project_package, PREFS_MODULE_NAME)

    from django.conf import settings

    for app in settings.INSTALLED_APPS:
        import_module(app, PREFS_MODULE_NAME)
Remove any fluctuated data points by magnitudes.
dataset/ETHPy150Open idlesign/django-siteprefs/siteprefs/utils.py/import_prefs--crossover with--dataset/ETHPy150Open dwkim78/upsilon/upsilon/utils/utils.py/sigma_clipping