# Fundamentals Lesson 9

**URL:** https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101
**Category:** Django
**Created:** [October 23, 2021, 4:04pm UTC](https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101 "2021-10-23T16:04:30Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Daniel78852](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@Daniel78852](https://forum.codewithmosh.com/u/Daniel78852)
#### Post date: [October 23, 2021, 4:04pm UTC](https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101/1 "2021-10-23T16:04:30Z")

</div>

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.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/f/f6617541c75097000fa8588a933aa9cb52608735.png)  
Any help would be a blessing. Thanks.

---

<div class="post-metadata">

### Author: ![TaserFace20](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@TaserFace20](https://forum.codewithmosh.com/u/TaserFace20)
#### Post date: [October 23, 2021, 4:25pm UTC](https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101/2 "2021-10-23T16:25:03Z")

</div>

It seems like you need to go to “[http://127.0.0.1:8000/playground/hello](http://127.0.0.1:8000/playground/hello)” to get the Hello wold view.

---

<div class="post-metadata">

### Author: ![Daniel78852](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@Daniel78852](https://forum.codewithmosh.com/u/Daniel78852)
#### Post date: [October 24, 2021, 4:04am UTC](https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101/3 "2021-10-24T04:04:28Z")

</div>

> [@TaserFace20](#):
>
> [http://127.0.0.1:8000/playground/hello](http://127.0.0.1:8000/playground/hello)

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

---

<div class="post-metadata">

### Author: ![TaserFace20](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@TaserFace20](https://forum.codewithmosh.com/u/TaserFace20)
#### Post date: [October 24, 2021, 4:17am UTC](https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101/4 "2021-10-24T04:17:05Z")

</div>

Can you post both urls.py and views.py? so we can have a look.

---

<div class="post-metadata">

### Author: ![Daniel78852](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@Daniel78852](https://forum.codewithmosh.com/u/Daniel78852)
#### Post date: [October 27, 2021, 5:08am UTC](https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101/5 "2021-10-27T05:08:59Z")

</div>

urls.py\>\>playground

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/7/7d74d2f9552ffd95f45ec29684a0e3f54977edb8.png)  
urls.py storefront  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/43a4a93745ebb37fa328b0e2a7ac67b9a24b21cf.png)

---

<div class="post-metadata">

### Author: ![Daniel78852](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@Daniel78852](https://forum.codewithmosh.com/u/Daniel78852)
#### Post date: [October 27, 2021, 5:10am UTC](https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101/6 "2021-10-27T05:10:44Z")

</div>

views.py(Playground)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/f/f149ee2b2698332fa588856a3fe8d1d3299fed5f.png)

---

<div class="post-metadata">

### Author: ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.codewithmosh.com/u/Paul)
#### Post date: [October 27, 2021, 7:25am UTC](https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101/7 "2021-10-27T07:25:45Z")

</div>

The problem is that in the main urls.py file you list this endpoint as `pg` and not not as `playground.` Try `127.0.0.1/pg/hello`.

---

<div class="post-metadata">

### Author: ![Daniel78852](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@Daniel78852](https://forum.codewithmosh.com/u/Daniel78852)
#### Post date: [October 27, 2021, 7:50am UTC](https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101/8 "2021-10-27T07:50:32Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.codewithmosh.com/u/Paul)
#### Post date: [October 27, 2021, 8:12am UTC](https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101/9 "2021-10-27T08:12:20Z")

</div>

So by landing page I assume you meen `127.0.0.1:8000`? Once you have set up a route in the main urls.py 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 `127.0.0.1/pg` then you need to explicitly add a `/` url pattern in addition to your `hello/` pattern in the `pg/urls.py` 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?

---

<div class="post-metadata">

### Author: ![Daniel78852](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@Daniel78852](https://forum.codewithmosh.com/u/Daniel78852)
#### Post date: [October 27, 2021, 1:06pm UTC](https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101/10 "2021-10-27T13:06:26Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/1/1948829a4504a42db435629455419fe3cf9a12d7.png)

PLAYGROUND URLS

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/9/986068caeb28c3b6103f09898e0c88cbd2d0c09e.png)

Storefront urls.py

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/44d29a6aeeff6690eaf55e7624a0f6c9e4a65251.png)

Storefront Settings

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/e/ea0755ad81e87634cf1cc7dc4cdc2cf4f545e889.png)

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

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/2/2db7530cde05ffe6768e5ee52bc6c47382b39ea7.png)

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

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/0/01607adb22ea25a015b6a50c8ecaaaffe531280f.png)

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  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/c/ce8a16659a1033006d1f28dd3f94f39cc8a74223.png)

Thanks for your insight.

---

<div class="post-metadata">

### Author: ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.codewithmosh.com/u/Paul)
#### Post date: [October 27, 2021, 4:00pm UTC](https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101/11 "2021-10-27T16:00:58Z")

</div>

The error is normal, you will not get the landing page after you have added endpoints to the main urls.py 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 `127.0.0.1:8000` 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. 😉

---

<div class="post-metadata">

### Author: ![Daniel78852](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@Daniel78852](https://forum.codewithmosh.com/u/Daniel78852)
#### Post date: [October 28, 2021, 3:32am UTC](https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101/12 "2021-10-28T03:32:53Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![elleneia](https://avatars.discourse-cdn.com/v4/letter/e/e99b99/32.png) [@elleneia](https://forum.codewithmosh.com/u/elleneia)
#### Post date: [April 16, 2022, 3:11pm UTC](https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101/13 "2022-04-16T15:11:38Z")

</div>

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!! 😄 (Not!) I SO APPRECIATE Mosh’s Python and Django!!

---

<div class="post-metadata">

### Author: ![Jviice](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@Jviice](https://forum.codewithmosh.com/u/Jviice)
#### Post date: [January 3, 2024, 12:11pm UTC](https://forum.codewithmosh.com/t/fundamentals-lesson-9/8101/14 "2024-01-03T12:11:52Z")

</div>

Im facing the same issue. I cant get the Django loading screen. Help 😭.

After I run the first ‘mange.py runserver’, I get the 404 type screen.
