old_contents: # coding=utf-8
  
  from flask.ext.script import Manager, Server
  
  from firefly import app
  
  manager = Manager(app)
  
  manager.add_command('runserver', Server(
      use_debugger=True,
      use_reloader=True,
      host='0.0.0.0')
  )
  
  if __name__ == '__main__':
      manager.run()
  
new_contents: # coding=utf-8
  
  from flask_script import Manager, Server
  
  from firefly import app
  
  manager = Manager(app)
  
  manager.add_command('runserver', Server(
      use_debugger=True,
      use_reloader=True,
      host='0.0.0.0')
  )
  
  if __name__ == '__main__':
      manager.run()
  
subject: change flask.ext. to flask_