django.db.models.loading

removed global settings and replaced with the uses_settings decorator
 and kwargs.
django.db.models.query

Removed the settings global and added the uses_settings decorator and kwargs.
django/db/models/fields/__init__.py

Removed global settings and added the uses_settings decorator and kwargs.
The tests passed #unsetting
django/db/models/sql/compiler.py

Removed the global settings and added the uses_settings decorator and kwargs.
The tests passed. #unsetting
django.db.models.sql.subqueries

Removed the globals settings and added the uses_settings decorator and kwargs.
The tests passed. #unsetting
django.db.models.sql.where

Removed the global settings, and added the uses_settings decorator
and kwargs. The tests passed. #unsetting
django.db.backends.util

removed the global settings, and added the uses_settings decorator and kwargs.
The Tests passed. #unsetting
django.db.backends.sqlite3.base

removed the global settings, and added the uses_settings decorator and kwargs.
The tests passed. #unsetting
django.db.migrations.loader

Removed the global settings. Added the uses_settings decorator
and kwargs. The tests passed. #unsetting
django.db.models.options

Removed the global settings. Added the uses_settings decorator
and kwargs. In the case I imported settings locally in the
_swapped method of the class Options. I think this is probably used
for backward compatibility. The tests pass. #unsetting
django.middleware.locale

Removed the global settings. Added the uses_settings decorator,
and kwargs. The tests passed. #unsetting
django.middleware.common

Removed the global settings. Added the uses_settings decorator
and kwargs. The tests passed. #unsetting
django.middleware.clickjacking

Removed the global settings. Added the uses_settings decorator
and kwargs. The tests pass. #unsetting