#NEWLINE# def check_dependencies( **kwargs ) : #NEWLINE# #INDENT# "\n    Check that the admin's dependencies are correctly installed.\n    " #NEWLINE# errors = [ ] #NEWLINE# if ( not apps . is_installed ( 'django.contrib.contenttypes' ) ) : #NEWLINE# #INDENT# missing_app = checks . Error ( "'django.contrib.contenttypes' must be in INSTALLED_APPS in order to use the admin application." , id = 'admin.E401' ) #NEWLINE# errors . append ( missing_app ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# default_template_engine = Engine . get_default ( ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( 'django.contrib.auth.context_processors.auth' not in default_template_engine . context_processors ) and ( 'django.contrib.auth.backends.ModelBackend' in settings . AUTHENTICATION_BACKENDS ) ) : #NEWLINE# #INDENT# missing_template = checks . Error ( "'django.contrib.auth.context_processors.auth' must be in TEMPLATES in order to use the admin application." , id = 'admin.E402' ) #NEWLINE# errors . append ( missing_template ) #NEWLINE# #UNINDENT# #UNINDENT# return errors