old_contents: # -*- coding: utf-8 -*-
  from flask import Flask, render_template, request, flash
  from flask_bootstrap import Bootstrap
  
  
  app = Flask(__name__)
  bootstrap = Bootstrap(app)
  # app.config['SERCRET_KEY']='haosy666'
  
  @app.route('/')
  def hello_world():
      return '<h1>Hello World!,Welcome!</h1>'
      # return render_template("base.html")
  
  
  @app.route('/form', methods=['GET', 'POST'])
  def form():
      # if request.method == 'POST':
          # flash(u'你的提交方法是POST')
      return render_template('form.html', method=request.method)
  
  
  if __name__ == '__main__':
      app.run(debug=True)
  
new_contents: # -*- coding: utf-8 -*-
  from flask import Flask, render_template, request, flash
  from flask_bootstrap import Bootstrap
  
  
  app = Flask(__name__)
  bootstrap = Bootstrap(app)
  
  @app.route('/')
  def hello_world():
      return '<h1>Hello World!,Welcome!</h1>'
      # return render_template("base.html")
  
  
  @app.route('/form', methods=['GET', 'POST'])
  def form():
      # if request.method == 'POST':
          # flash(u'你的提交方法是POST')
      return render_template('form.html', method=request.method)
  
  
  if __name__ == '__main__':
      app.run(debug=True)
  
subject: 完成了flask-bootstrap的简单使用，但是未使用flask-nav