Ticket #17799: syncdb.patch

File syncdb.patch, 818 bytes (added by kacah222@…, 13 years ago)
  • django/core/management/commands/syncdb.py

     
    2323
    2424    def handle_noargs(self, **options):
    2525
    26         verbosity = int(options.get('verbosity'))
     26        verbosity = int(options.get('verbosity', 1))
    2727        interactive = options.get('interactive')
    2828        show_traceback = options.get('traceback')
    2929
     
    5252                if not msg.startswith('No module named') or 'management' not in  msg:
    5353                    raise
    5454
    55         db = options.get('database')
     55        db = options.get('database', 'default')
    5656        connection = connections[db]
    5757        cursor = connection.cursor()
    5858       
Back to Top