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.
I want to test my code but when I go to port 8000 it lands me to a page that says:
"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."
Am I doing something wrong or is this Workspace really not working?
Steven Parker212,150 Points
Were you running the app when you tried to connect? That's what I would see if I don't run the app.
But I get a different response with the app running, which I did with the "
python simle_app.py" command in the workspace console:
treehouse:~/workspace$ python simple_app.py * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit) * Restarting with stat * Debugger is active! * Debugger PIN: 605-325-445
There's still some things to work on, but it does connect. Then I get a "jinja2.exceptions.TemplateNotFound" error in the preview (with associated diagnostics). That may be due to the file being named "indext.html" (with a "t") instead of "index.html".
FIxing the name leads to yet another error, this time "jinja2.exceptions.TemplateSyntaxError", but you should be able to continue debugging from there.
Now it works. It seems I was forgetting very basic stuff haha.