Extends Base.html For Navbars - Python Django Dentist Website #8

preview_player
Показать описание


This allows us to keep our navbar and footer code in one file, and then have every webpage of our site reference that file. So if we make a change to a link on our navbar, that change will immediately reflect on every page of our site; so we don't have to manually update each page!
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire Money Making Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:
Take $30 off with coupon code: youtube1

Codemycom
Автор

thank you, it helped when you made it clear that everything is now being fed through the base.html page, so the block and end block are used to choose what section we want to take from each template

EUU
Автор

oh man that's exactly what I've been looking for for two days !

medbenzekri
Автор

Honestly, you explain things so well and you always have exactly what I'm looking for. Thank you!

martinweaver
Автор

There's a lot of great content here that isn't part of the Coedmy course; good thing I checked these additional videos!

Schecter
Автор

You sir are a great teacher! I appreciate you.

sephjvr
Автор

For anyone getting the "Template Doesn't Exist" Error:

Try modifying the extends tag from {% extends 'base.html' %}

To: {% extends 'website/base.html' %}

Since we created that additional folder in the earlier lesson, hope this helps!

jpinedude
Автор

you solve my live, keep posting you are the best

flippp
Автор

You are just perfectly flawless tutor🤩

ananyamahapatra
Автор

Thanks a lot ! I had a problem with the block content not showing and wasn't able to find a documentation on that.

It was just a misunderstanding on the logic behind it, i thought that just adding a big block on the page to be extended when i had to add that little block content under what i wanted to export

Klaceyes
Автор

Hi, thanks so much for the awesome tutorial. Been following along and it is great. For the previous tutorial, I had the port in quotation mark and got a message both when testing and after using my gmail. So was wondering

ekwogeblaise
Автор

I am able to extend my base.html to all other pages but there is a problem. I have to write my css code for each page.
for that wrote the css code for base.html in base_style.css file linked base.html to base_style.css. So now I don't have to write the same css code every time but now there is another big problem. I can not link another page's html files to there css files. Please help, You are my last hope, otherwise I am gonna write that 1000 line css code to all my pages(atleast 20).

sahilkulria
Автор

587 in quotations worked without as well. What does that mean?

chrisr
Автор

Is it possible to select and open pages using Navbar menu options without reloading the whole page? For ex: If I click on 'About'. Is it possible to open the About.html page without reloading the whole page?

josephchacko
Автор

Hello John. I am not getting a result as expected. I put the base.html file in views.py and extends in home.html but not getting a result. It is showing error when load static line written as the first line of the base.html file. I can see only output from base.html file and not home.html (extended files). I am using Django 3.1.2. Please help me out.

Xanthron
Автор

How can include base.html (inside templates folder) to inside about.html (inside static/pages/about.html).
i'm including {% extends 'base.html" %} inside static/pages/about.html but its not working. please explain

esrevinudekcolnu
Автор

teaches python methods by the day, makes meth by the night. #breakingBad

haha, awesome video by the way!

parthkrishna
Автор

this is literally making no sense.

my main html file now displays nothing BUT the title and content block tags that i exported to base.

Calcific
Автор

Hi received such notification
Using the URLconf defined in dentist.urls, Django tried these URL patterns, in this order:

admin/
[name='home']
[name='contact']
The current path, index.html, didn't match any of these.
what can be wrong? in which file?
this notification appears when I try to move from contact page to home page.

ИгорьКузнецов-тр
Автор

@Codemy.com, Which Technology/Tools must be used to build very efficient e-commerce mobile app?
Can you please suggest me ...

naveenkumarm