def make_migrations(base_dir):
 try:
  manage = os.path.join(base_dir, 'manage.py')
  args = ['python', manage, 'makemigrations']
  subprocess.call(args)
  args = ['python', manage, 'makemigrations', 'StaticAnalyzer']
  subprocess.call(args)
 except:
  PrintException('[ERROR] Cannot Make Migrations')

def make_migrations ( base_dir ) : try : manage = os . path . join ( base_dir , 'manage.py' ) args = [ 'python' , manage , 'makemigrations' ] subprocess . call ( args ) args = [ 'python' , manage , 'makemigrations' , 'StaticAnalyzer' ] subprocess . call ( args ) except : PrintException ( '[ERROR] Cannot Make Migrations' )
create database migrations .