<s> from django . core . management . base import NoArgsCommand <EOL> from rapidsms . models import Backend <EOL> from ... conf import settings <EOL> class Command ( NoArgsCommand ) : <EOL> help = "<STR_LIT>" <EOL> def handle_noargs ( self , ** options ) : <EOL> verbosity = int ( options . get ( "<STR_LIT>" , <NUM_LIT:1> ) ) <EOL> known_backend_names = list ( Backend . objects . values_list ( "<STR_LIT:name>" , flat = True ) ) <EOL> for name in settings . INSTALLED_BACKENDS : <EOL> if not name in known_backend_names : <EOL> known_backend_names . append ( name ) <EOL> backend = Backend . objects . create ( <EOL> name = name ) <EOL> if verbosity >= <NUM_LIT:1> : <EOL> print "<STR_LIT>" % backend </s>
