from flask import Flask, render_template
from myapp.views.qrcode import bp, make_qrcode_url
app = Flask(__name__)
app.config['SECRET_KEY'] = 'random-bytes'
app.register_blueprint(bp)
@app.route('/')
def index():
qrcode_url = make_qrcode_url('https://goo.gl/3K59Aj')
return render_template('index.html', qrcode_url=qrcode_url)
if __name__ == '__main__':
app.run()
<img src="{{ qrcode_url }}" width="300" height="300" />