<s> from optparse import make_option <EOL> from google . appengine . _internal . django . core . management . base import BaseCommand , CommandError <EOL> from google . appengine . _internal . django . db import connections , DEFAULT_DB_ALIAS <EOL> class Command ( BaseCommand ) : <EOL> help = ( "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> option_list = BaseCommand . option_list + ( <EOL> make_option ( '<STR_LIT>' , action = '<STR_LIT:store>' , dest = '<STR_LIT>' , <EOL> default = DEFAULT_DB_ALIAS , help = '<STR_LIT>' <EOL> '<STR_LIT>' ) , <EOL> ) <EOL> requires_model_validation = False <EOL> def handle ( self , ** options ) : <EOL> connection = connections [ options . get ( '<STR_LIT>' , DEFAULT_DB_ALIAS ) ] <EOL> try : <EOL> connection . client . runshell ( ) <EOL> except OSError : <EOL> raise CommandError ( '<STR_LIT>' % connection . client . executable_name ) </s>
