Python Flask Basics Character Builder Set a Cookie

TSE YU
TSE YU
1,167 Points

why I am still got the error message "Didn't get a 'treehouse' cookie", please see my code next.

from flask import Flask, make_response

app = Flask(name)

@app.route('/set_cookie') def save(): response = make_respone() response.set_cookie('treehouse',value='') return response

flask_app.py
from flask import Flask, make_response

app = Flask(__name__)


@app.route('/set_cookie')
def save():
    #redirect_to_index = redirect('/index')
    #response = current_app.make_response(redirect_to_index )
    response = make_respone()
    response.set_cookie('treehouse',value='')
    return response