old_contents: #!/usr/bin/env python
  
  import json
  from flask.ext.script import Manager
  from brew import app, mongo
  
  
  manager = Manager(app)
  
  
  @manager.command
  def populatedb():
      with open('recipes.json', 'r') as f:
          mongo.db.recipes.insert(json.load(f))
  
  
  if __name__ == '__main__':
      manager.run()
  
new_contents: from brewmeister import app
  from flask_script import Manager
  
  
  manager = Manager(app)
  
  
  if __name__ == '__main__':
      manager.run()
  
subject: Use current manage script