Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Flask Basics Character Builder Set a Cookie

Flask Basics Challenge task 3 of 3

This task is bugged. Correct me if I'm wrong, but I think I entered the right answer multiple different ways. Yet, the challenge keeps giving me indentation errors. Or the vague response "try again!"

from flask import Flask
from flask import make_response

app = Flask(__name__)


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

2 Answers

Steven Tagawa
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Steven Tagawa
Python Development Techdegree Graduate 14,238 Points

Hi Mike,

Yikes--in the post your code is showing up as a giant blob of unindented orange, so I can't see what might be causing an indentation error... I assume that the lines under your function definition are indented? Maybe try unindenting them and reindenting them manually... I'm not up to Flask, but I don't see any obvious syntax errors or anything else weird in your code.

TSE YU
TSE YU
1,198 Points

I am having the same problem.