from flask import Flask
from flask import render_template, url_for

import parse_data

app = Flask(__name__)


@app.route("/dashboard")
def dashboard():
    data = parse_data.load_and_format_data()

    title = 'Grand Bargain Monitoring'

    return render_template('dashboard.html', data=data, heading=title, page_title=title)


if __name__ == "__main__":
    app.run()

from flask import Flask
from flask import render_template, url_for

import parse_data

app = Flask(__name__)


@app.route("/dashboard")
def dashboard():
    data = parse_data.load_and_format_data()

    title = 'Grand Bargain Transparency Dashboard'

    return render_template('dashboard.html', data=data, heading=title, page_title=title)


if __name__ == "__main__":
    app.run()

Change page title and heading
Change page title and heading

  from flask import Flask
  from flask import render_template, url_for
  
  import parse_data
  
  app = Flask(__name__)
  
  
  @app.route("/dashboard")
  def dashboard():
      data = parse_data.load_and_format_data()
  
-     title = 'Grand Bargain Monitoring'
+     title = 'Grand Bargain Transparency Dashboard'
  
      return render_template('dashboard.html', data=data, heading=title, page_title=title)
  
  
  if __name__ == "__main__":
      app.run()
  
Change page title and heading
## Code Before:
from flask import Flask
from flask import render_template, url_for

import parse_data

app = Flask(__name__)


@app.route("/dashboard")
def dashboard():
    data = parse_data.load_and_format_data()

    title = 'Grand Bargain Monitoring'

    return render_template('dashboard.html', data=data, heading=title, page_title=title)


if __name__ == "__main__":
    app.run()

## Instruction:
Change page title and heading
## Code After:
from flask import Flask
from flask import render_template, url_for

import parse_data

app = Flask(__name__)


@app.route("/dashboard")
def dashboard():
    data = parse_data.load_and_format_data()

    title = 'Grand Bargain Transparency Dashboard'

    return render_template('dashboard.html', data=data, heading=title, page_title=title)


if __name__ == "__main__":
    app.run()
