Ticket #17799: syncdb.patch
File syncdb.patch, 818 bytes (added by , 13 years ago) |
---|
-
django/core/management/commands/syncdb.py
23 23 24 24 def handle_noargs(self, **options): 25 25 26 verbosity = int(options.get('verbosity' ))26 verbosity = int(options.get('verbosity', 1)) 27 27 interactive = options.get('interactive') 28 28 show_traceback = options.get('traceback') 29 29 … … 52 52 if not msg.startswith('No module named') or 'management' not in msg: 53 53 raise 54 54 55 db = options.get('database' )55 db = options.get('database', 'default') 56 56 connection = connections[db] 57 57 cursor = connection.cursor() 58 58