@app.route('/getColors')
def add_colors():
    user = request.args.get('handle', 0, type=str)
return render_template('colors.html', avatar_url=process_data(data))
Rendering Jinja template in Flask following ajax response