#NEWLINE# def handle( self , * args , **options ) : #NEWLINE# #INDENT# 'Runs the management command.' #NEWLINE# verbosity = int ( options . get ( 'verbosity' , 1 ) ) #NEWLINE# backend = get_backend ( ) #NEWLINE# if ( not backend . requires_installation ) : #NEWLINE# #INDENT# if ( options >= 2 ) : #NEWLINE# #INDENT# self . stdout . write ( 'Your search backend does not require installation.\n' ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if backend . is_installed ( ) : #NEWLINE# #INDENT# if ( verbosity >= 2 ) : #NEWLINE# #INDENT# self . stdout . write ( 'django-watson is already installed.\n' ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# backend . do_install ( ) #NEWLINE# if ( verbosity >= 2 ) : #NEWLINE# #INDENT# self . stdout . write ( 'django-watson has been successfully installed.\n' )