Fixed potential type errors in django.db

The tests passed.
django.contrib.staticfiles.views

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

Removed the global settings.
Added the uses_settings decorator and kwargs.
The tests passed.   #unsetting
django.contrib.admin.helpers

Removed the global settings.
Added the uses_settings decorator and kwargs.
The tests passed.  #unsetting
django.contrib.admindocs.views

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

Removed the global settings.
Added the uses_settings decorator and kwargs.
The tests passed.  #unsetting
django.contrib.auth.tokens

Removed the global settings.
Added the uses_settings decorator and kwargs.
The tests passed.  #unsetting.
django.contrib.auth.admin

Removed the global settings.
Added the uses_settings decorator and kwargs.
The tests passed.  #unsetting
django/contrib/auth/__init__.py

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