old_contents: from django.core.management.base import CommandError
  
  try:
      from south.management.commands import syncdb
  except ImportError:
      from django.core.management.commands import syncdb
  
  
  class Command(syncdb.Command):
      def handle_noargs(self, **options):
          raise CommandError("syncdb has been disabled, use sync_schemas instead. Please read the "
                             "documentation if you don't know why you shouldn't call syncdb directly!")
new_contents: from django.core.management.base import CommandError
  from django.conf import settings
  
  try:
      from south.management.commands import syncdb
  except ImportError:
      from django.core.management.commands import syncdb
  
  
  class Command(syncdb.Command):
  
      def handle(self, *args, **options):
          database = options.get('database', 'default')
          if settings.DATABASES[database]['ENGINE'] == 'tenant_schemas.postgresql_backend':
              raise CommandError("syncdb has been disabled, for the database {}. "
                                 "Use sync_schemas instead. Please read the "
                                 "documentation if you don't know why "
                                 "you shouldn't call syncdb directly!")
          super(Command, self).handle(*args, **options)
  
subject: allow syncdb for db not managed by tenant