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 trialtracy rohlin
3,793 PointsHow to use web page using different IDE?
I'm using pycharm and as far as i can tell there's no "preview" button which would take me to the page after i've connected to the server. My husband told me to type in localhost:8000 but I get a 404. It says that Django tried the courses/ url and the current url didn't match any of that. How do I check out the webpage if I'm not using workspaces?
3 Answers
Max Hirsh
16,773 PointsI'm not familiar with pycharm, but if it's causing issues with previewing the webpage, I would recommend previewing your web page from the mac/linux terminal. Here's a link to the first page of the django tutorial with an example of starting the django server:
Erika Suzuki
20,299 Pointstry 0.0.0.0:8000, and make sure django is running.
Flore W
4,744 PointsIn PyCharm, when you run in the Terminal window:
python manage.py runserver
there should be a message appearing along the lines of:
...
Starting development server at http://127.0.0.1:8000/
Just click on the link, or copy paste into your browser and voila!
Joe Law
5,040 PointsJoe Law
5,040 PointsI am using Pycharm too, but localhost:8000 works fine for me tho