Fundamentals Lesson 9

Hello. I have done as the video suggests. I can’t seem to get the “Hello World” out put I dont get any errors in the terminal, except when I run the server I get the following image.

Any help would be a blessing. Thanks.

It seems like you need to go to “” to get the Hello wold view.

Tried it and I received the same results or similar. Not sure where to go from here. I did some research but can’t find a similar situation. Thanks though

1 Like

Can you post both and so we can have a look.>>playground storefront

The problem is that in the main file you list this endpoint as pg and not not as playground. Try

Sorry bud, I should have mentioned this. I did change all of that as PG. I was having issues so I started the whole project again.

I can reach the hello world page now, but I keep getting this page when I run the server. So my issue is the landing page is now showing an error. I am unsure why.

Another issue is I can’t get the debug tool to appear. I’m going to re-start the project. as I really want to learn Django, and fine tune more of my HTML/CSS/JS skills.
Thanks bud, I’d appreciate any inpyut on how to solve the landing page issue.

So by landing page I assume you meen Once you have set up a route in the main file that points to an endpoint eg pg/, then you will not get the Django landing page any more. If you want to have a landing page at then you need to explicitly add a / url pattern in addition to your hello/ pattern in the pg/ file otherwise you will get an error. Not sure if this is what you meant. If not, perhaps post the error page and your views and settings files again?

1 Like

I do appreciate the help. I’ll post each image again. I have gone back and changed it to playground to be more consistent.



Storefront Settings

Yes, I am running the server to and I am expecting to see the Django landing page which is this image

Although when I complete the mappings I get this image instead.

Yes, once I type into the URL section /playground/hello
I am able to see my mapped out page and I see the message Hello World. .

I am trying to figure if the error page is normal, as in the video when Mosh runs the server he always gets the Django landing page.

Lastly in my terminal I get this message after the runserver command

Thanks for your insight.

The error is normal, you will not get the landing page after you have added endpoints to the main url patterns. This is standard Django behaviour. You will now only have access the endpoints declared in this list, ie playground/hello and admin ,the latter of which is also provided by Django. The 404 error message you get at is because you do not have a / endpoint defined. If you want the landing page back, remove the added urls from the url patterns. Not that you want to do that since that is all you will then ever have. :wink:

1 Like

haha man thanks, I hav3e been on that wondering if I was following correctly. Now i’m working towrds the debugging tool bar. I have spent more time on debugging which has really made this course interesting and difficult. Thanks again bud. Now to figure out why I can’t see the tool bar.

1 Like

It would be nice if Mosh had mentioned that! I have been following along and “doing”, and got stuck trying to find where I made my mistake leaving a / without anywhere to go. HOURS spent on this lesson. I even went ALL THE WAY back to the beginning and started another project called “frontstore”, and got the same results!! Thank you, thank you for this note!! The good part? I have repeated and repeated and repeated these steps, listening to the teaching. I could probably teach Django to this point!! :smile: (Not!) I SO APPRECIATE Mosh’s Python and Django!!

1 Like