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

HTML HTML Basics Going Further with HTML Root-relative Paths

Mark Figueroa
seal-mask
.a{fill-rule:evenodd;}techdegree
Mark Figueroa
Front End Web Development Techdegree Student 8,074 Points

Does the serve get set up through the "cmd.exe" console? If so, how and how do I actually access my directory?

I viewed the thread and it seems others have had similar issues. The responses were not very helpful to me. I ran a google search and found how to open my command prompt:

1. Press WinKey+R
2. Type cmd
3. Press Enter

link:https://www.quora.com/How-do-I-open-terminal-in-windows

I'm not sure if that was the correct way to go about it, but I opened my "terminal" and entered: "C: \Users(my user name)>python -m SimpleHTTPServer localhost:8000," but nothing happened.

I understand the concept and why you would use a local server to view your directory's files. I don't understand how to actually set my server up or how I would access my files via my browser through my server. Please answer the following questions and explain this to me in laymens terms. Thanks in advance.

  1. How and where do I type the server name in?
  2. How do I go about navigating through/viewing my site within the server?

1 Answer

Steven Parker
Steven Parker
231,198 Points

Note that the first part of that line ("C: \Users(my user name)>") represents the command prompt shown by the system and is not something you would type in. The part you would type starts with the word "python".

Also, this example seems to be designed for the workspaces, which use a Linux operating system. The actual prompt you would see on a Windows system would likely be different.

And, Python isn't supplied by default on a Windows system. You would need to install it (if you had not already) before this command would work.

Finally, to view the site you would connect to the running server using a web browser.

Steven Parker
Steven Parker
231,198 Points

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

It should would have been nice for Guil Hernandez to explain all of that. =/