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
Oti Oritsejafor
3,281 Points"Workspace Unavailabe"
When I try to preview mine it just tells me
" Workspace Unavailable 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."
Here is my code for app.py
from flask import Flask
from flask import render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template("index.html")
@app.route('/save', methods=['POST'])
def save():
return 'Saved!'
app.run(debug=True, host='0.0.0.0', port=8000)
2 Answers
Kenneth Love
Treehouse Guest TeacherYour code looks OK. You're running the script in the terminal, right? If so, is there any strange output there?
Jay Padzensky
4,731 PointsHey there, sorry for any inconvenience. That's a strange error... Can you please send your Workspace text editor URL to Support? They'll be happy to take a closer look at things. Thanks for your patience! help@teamtreehouse.com
Oti Oritsejafor
3,281 PointsOti Oritsejafor
3,281 PointsThanks, it seems to be working now. No strange outputs