def handle_404(_, response, exception):
  logging.exception(exception)
  response.set_status(404)
  response.write(jinja_environment.get_template('404.html').render())
Handles 404, page not found exceptions.
dataset/ETHPy150Open AppScale/appscale/AppDashboard/dashboard.py/handle_404