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 Django Basics Model Administration First App View

tracy rohlin
tracy rohlin
3,793 Points

How 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?

Joe Law
Joe Law
5,040 Points

I am using Pycharm too, but localhost:8000 works fine for me tho

3 Answers

Max Hirsh
Max Hirsh
16,773 Points

I'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:

https://docs.djangoproject.com/en/1.8/intro/tutorial01/

Erika Suzuki
Erika Suzuki
20,299 Points

try 0.0.0.0:8000, and make sure django is running.

Flore W
Flore W
4,744 Points

In 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!