Python Flask Basics Character Builder Set a Cookie

The key should be treehouse but the value can be anything you want.?

The key should be treehouse but the value can be anything you want.

flask_app.py
from flask import Flask, make_response

app = Flask(__name__)


@app.route('/save')
def save():
    response = make_resonse()
    response.set_cookie("treehouse", "is awesome")
    return response  

2 Answers

Steven Parker
Steven Parker
171,228 Points

It's just a typo. You have "make_resonse" instead of "make_response" (with a "p").

Thank you!

Steven Parker
Steven Parker
171,228 Points

Folorunsho Samuel — Glad to help. You can mark a question solved by choosing a "best answer".
And happy coding!