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.

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,761 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,731 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!