How To Use Templates and Custom HTML – Django Wednesdays #3

Channel Avatar
Comment
X
Share
How To Use Templates and Custom HTML - Django Wednesdays #3
How To Use Templates and Custom HTML – Django Wednesdays #3
In this video I’ll show you how to use Templates and Custom HTML in your Django App.

It’s important to break apart a website into sections. You’ll want a template that handles the headers (navbar stuff) and footers for each of your web pages. I’ll show you how to do that in this video.

We’ll also start to use the Bootstrap CSS Framework in this video. We’ll add a Bootstrap starter template to our base.html file. Then we’ll add a Bootstrap Navbar as well.

Finally, we’ll add some Django links using the URL tag on the navbar.

Timecodes
0:00 – Intro
0:44 – Fix The Root URL Path
1:42 – Update The Home Function Parameters
2:45 – Add Dynamic Dates To Home Function Parameters
4:44 – Intro To Templates
5:26 – Namespacing The Django Template Folder
7:25 – Create base.html Template File
8:49 – Update home.html With Block Content Tags and Extends base.html
10:46 – Add Bootstrap Template To Django App
12:07 – Add A Bootstrap Navbar To Django App
13:01 – Add Navbar to base.html with include Tag
13:40 – Customize Bootstrap Navbar
15:21 – Add Navbar Links Using Django URL Tags
16:00 – Pass Parameters To Django URL Tag
17:01 – Conclusion

Take the opportunity to connect and share this video with your friends and family if you find it useful.

Keywords: django template tags, django templates bootstrap, django template inheritance, django template tutorial, django template tags tutorial, django template language tutorial, django template tags and filters, django template include, django bootstrap, django bootstrap navbar, django urls path, django url routing, django url parameters in template, django url tag, codemy.com, john elder, john elder django, django tutorial #3, django john elder, codemy.com django, codemy django

Read Also

Leave a Reply

Your email address will not be published. Required fields are marked *