def check_installed_apps_configuration():
    """
    Check the app is put in correct order in INSTALLED_APPS

    django.contrib.staticfiles runserver command is likely to
    override devserver management command if put in wrong order.

    Django had reversed order of management commands collection prior to 1.7
    https://code.djangoproject.com/ticket/16599
    """
    from django.conf import settings
    try:
        staticfiles_index = settings.INSTALLED_APPS.index('django.contrib.staticfiles')
        devserver_index = settings.INSTALLED_APPS.index('devserver')
    except ValueError:
        pass
    else:
        latest_app_overrides = django.VERSION < (1, 7)
        if devserver_index < staticfiles_index and latest_app_overrides:
            logging.error(
                'Put "devserver" below "django.contrib.staticfiles" in INSTALLED_APPS to make it work')
        elif devserver_index > staticfiles_index and not latest_app_overrides:
            logging.error(
                'Put "devserver" above "django.contrib.staticfiles" in INSTALLED_APPS to make it work')
dataset/ETHPy150Open dcramer/django-devserver/devserver/models.py/check_installed_apps_configuration/original