old_contents: from datetime import datetime
  from flask import Flask, render_template
  from flask_script import Manager
  from flask_bootstrap import Bootstrap
  from flask_moment import Moment 
  
  app = Flask(__name__)
  manager = Manager(app)
  bootstrap = Bootstrap(app)
  moment = Moment(app)
  
  
  @app.errorhandler(404)
  def page_not_found(e):
      return render_template('404.html'), 404
  
  
  @app.errorhandler(500)
  def internal_server_error(e):
      return render_template('500.html'), 500
  
  
  @app.route('/')
  def index():
      return render_template('index.html',
                             current_time=datetime.utcnow())
  
  
  @app.route('/user/<name>')
  def user(name):
      return render_template('user.html', name=name)
  
  
  if __name__ == '__main__':
      manager.run()
  
new_contents: from datetime import datetime
  from flask import Flask, render_template
  from flask_script import Manager
  from flask_bootstrap import Bootstrap
  from flask_moment import Moment
  from flask_wtf import Form
  from wtforms import StringField, SubmitField
  from wtforms.validators import Required
  
  app = Flask(__name__)
  app.config['SECRET_KEY'] = 'hard to guess string'
  manager = Manager(app)
  bootstrap = Bootstrap(app)
  moment = Moment(app)
  
  
  class NameForm(Form):
      name = StringField("What is your name?", validators=[Required()])
      submit = SubmitField("Submit")
  
  
  @app.errorhandler(404)
  def page_not_found(e):
      return render_template('404.html'), 404
  
  
  @app.errorhandler(500)
  def internal_server_error(e):
      return render_template('500.html'), 500
  
  
  @app.route('/')
  def index():
      return render_template('index.html', current_time=datetime.utcnow())
  
  
  @app.route('/user/<name>')
  def user(name):
      return render_template('user.html', name=name)
  
  
  if __name__ == '__main__':
      manager.run()
  
subject: update hello.py