Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Flask Basics Welcome to Flask First Steps

Ricardo Sierra
Ricardo Sierra
14,920 Points

Workspace Unavailable

I am not able to visualize my app in workspaces. It shows the workspace is unavailable, following is the next message "This is a preview link for a Treehouse Workspace that is not currently active. If you are the workspace owner, you can launch it again via the Treehouse site."

My code is:

from flask import Flask

app = Flask(name)

@app.route('/') @app.route('/<name>') def index(name="Treehouse"): return "Hello from {}!".format(name)

@app.route('/add/<int:num1>/<int:num2>') def add(num1, num2): return '{} + {} = {}'.format(num1, num2, num1+num2)

app.run(debug=True, port=8000, host='')

Appreciate any response in advance.

1 Answer

Ricardo Sierra
Ricardo Sierra
14,920 Points

I have solved the problem, Thank You!

how did you? I have the same problem