...

/

Homepage URL

Homepage URL

Learn how to add the path and view for the homepage of the Django web app.

Let’s create a home page for our site, so that users can navigate from there to other pages and vice versa.

Add app URLs in the main urls.py

We need to include the URLs from the app that we created in order to be found by the main urls.py file which sits in our project folder. We’ll do this every time that we create a new app.

You can see the urls.py file from the project folder within the code widget at the end of this lesson. We’ve included the path to the URLs of our listings app in line 6. Let’s try to learn about a couple ...