old_contents: from flask import Flask
  from flask import render_template
  from pymongo import Connection
  import json
  from bson import json_util
  from bson.json_util import dumps
  
  app = Flask(__name__)
  
  MONGODB_HOST = 'localhost'
  MONGODB_PORT = 27017
  DBS_NAME = 'donorschoose'
  COLLECTION_NAME = 'projects'
  FIELDS = {'school_state': True, 'resource_type': True, 'poverty_level': True, 'date_posted': True, 'total_donations': True, '_id': False}
  
  @app.route("/")
  def index():
      return render_template("index.html")
  
  @app.route("/donorschoose/projects")
  def donorschoose_projects():
      connection = Connection(MONGODB_HOST, MONGODB_PORT)
      collection = connection[DBS_NAME][COLLECTION_NAME]
      projects = collection.find(fields=FIELDS)
      json_projects = []
      for project in projects:
          json_projects.append(project)
      json_projects = json.dumps(json_projects, default=json_util.default)
      connection.disconnect()
      return json_projects
  
  if __name__ == "__main__":
      app.run(host='10.23.0.208',port=5000,debug=True)
  
new_contents: from flask import Flask
  from flask import render_template
  from pymongo import Connection
  import json
  from bson import json_util
  from bson.json_util import dumps
  
  app = Flask(__name__)
  
  MONGODB_HOST = 'localhost'
  MONGODB_PORT = 27017
  DBS_NAME = 'donorschoose'
  COLLECTION_NAME = 'projects'
  FIELDS = {'school_state': True, 'resource_type': True, 'poverty_level': True, 'date_posted': True, 'total_donations': True, '_id': False}
  
  @app.route("/")
  def index():
      return render_template("index.html")
  
  @app.route("/donorschoose/projects")
  def donorschoose_projects():
      connection = Connection(MONGODB_HOST, MONGODB_PORT)
      collection = connection[DBS_NAME][COLLECTION_NAME]
      projects = collection.find(fields=FIELDS)
      json_projects = []
      for project in projects:
          json_projects.append(project)
      json_projects = json.dumps(json_projects, default=json_util.default)
      connection.disconnect()
      return json_projects
  
  if __name__ == "__main__":
      app.run(host='IP_Internal',port=5000,debug=True)
  
subject: Update app.py