▶️ Watch Entire Money Making Playlist ✅ Subscribe To My RUclips Channel: bit.ly/2tEBTzg bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com Take $30 off with coupon code: youtube1
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
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!
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
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).
@@Codemycom My issue is like : I have two file : 'base.html' and "page1.html". "page1.html" is inherited from "base.html". I wanna link "base.html" to "basestyle.css" and "page1.html" to "page1style.css". But I am able to link only one of the css files ( either "base.html" to "basestyle.css" OR "page1.html" to "page1style.css" ). I can't do both at the same time.
@@sahilkulria7325 Gotcha, try one of these: stackoverflow.com/questions/25386868/django-templates-use-different-css-for-pages or stackoverflow.com/questions/58698373/django-template-inheritance-how-to-use-multiple-css-files
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.
@@Codemycom I resolved the issue. it was related to the path of the templates and also the home.html file in views.py. Thank you for the quick reply John.Cheers!
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
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
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?
@@Codemycom hi John! Do you have any tutorials on how to make this happen? I want to build a bottom navbar like the ones you have on mobile apps and it would be great if it would stay always visible.
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.
@@Codemycom yes created them before. Separetely contact page and start(home at localhost 8000)page I can open. But when I want to move from contact page to home via clicking on "Home" at nav bar I recieve such error (
What did you do differently from the video? I suggest putting it aside for 2-3 days and then rewatching the video and checking the code. Your error will likely jump right out at you with a fresh set of eyes.
You did an Awesome job on these Django videos. Thanks. Please help me to fix the below issue: After extended base.html (only home.html), its Returning following Error Using the URLconf defined in dentist.urls, Django tried these URL patterns, in this order: admin/ [name='home'] The current path, index.html, didn't match any of these. # Website url.py from django.urls import path from . import views urlpatterns = [ path('', views.home, name='home'), ] # views.py from django.shortcuts import render # Create your views here. def home(request): return render(request, 'home.html', {})
Am i Missing any Path Here ? Since its returning "The current path, index.html, didn't match any of these." Or Django Installed Version issue ?
Nice video as always! Interesting that the message still sent to my email inbox with EMAIL_PORT = '587' in the quotation marks.. no issues there it seemed
I followed your video everything does work I got this error Desktop\webpage\web\accounts\templates\accounts\home.html, error at line 1 site-packages\django\template\backends\django.py", line 84, in reraise
home.html 1.start code {% extends 'base.html' %} {% load static %} {% block content %} end {% endblock %} 2.base.html start {% load static %} i have created base.html in templates folder i made mistake i don't now what to do sir
Really awesome contect. It helps me a lot. Besides, i like how you teach people, lovely. Btw, i have a problem after i set the base html and move the footer section to the base.html. my social media icon become like this ibb.co/L1Nc3JY do you know why its happen and how to fix this? thanks
▶️ Watch Entire Money Making Playlist ✅ Subscribe To My RUclips Channel:
bit.ly/2tEBTzg bit.ly/2IGzvOR
▶️ See More At: ✅ Join My Facebook Group:
Codemy.com bit.ly/2GFmOBz
▶️ Learn to Code at Codemy.com
Take $30 off with coupon code: youtube1
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
oh man that's exactly what I've been looking for for two days !
awesome!
Honestly, you explain things so well and you always have exactly what I'm looking for. Thank you!
Happy to help!
There's a lot of great content here that isn't part of the Coedmy course; good thing I checked these additional videos!
Glad you like them!
You sir are a great teacher! I appreciate you.
Thanks
Maan, you deserve a like ♥️
you solve my live , keep posting you are the best
Thanks
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!
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
Glad you got it sorted out!
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).
Sorry, I don't understand what you're asking
@@Codemycom My issue is like :
I have two file : 'base.html' and "page1.html".
"page1.html" is inherited from "base.html".
I wanna link "base.html" to "basestyle.css" and "page1.html" to "page1style.css".
But I am able to link only one of the css files ( either "base.html" to "basestyle.css" OR "page1.html" to "page1style.css" ).
I can't do both at the same time.
@@sahilkulria7325 Gotcha, try one of these:
stackoverflow.com/questions/25386868/django-templates-use-different-css-for-pages
or
stackoverflow.com/questions/58698373/django-template-inheritance-how-to-use-multiple-css-files
You are just perfectly flawless tutor🤩
Thank you so much 😀
587 in quotations worked without as well. What does that mean?
Well done mate
Thanks so much!
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.
Why did you put your base.html in views.py?
@@Codemycom I resolved the issue. it was related to the path of the templates and also the home.html file in views.py. Thank you for the quick reply John.Cheers!
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
Cool
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
You don't extend things in static files, that's not how it works. you extend base in the file that CALLS the static files.
@@Codemycom ok thanks
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?
No, unless you set up some weird Ajax thing or something
@@Codemycom hi John! Do you have any tutorials on how to make this happen? I want to build a bottom navbar like the ones you have on mobile apps and it would be great if it would stay always visible.
@@fernandust no sorry
I see Walter, I click like simple
haha
Thanks a lot
Welcome
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.
Not sure what you're asking...did you create a view in views.py for each url?
@@Codemycom yes created them before. Separetely contact page and start(home at localhost 8000)page I can open. But when I want to move from contact page to home via clicking on "Home" at nav bar I recieve such error (
@@Codemycom I found mistake hope thuther all will work correctly!
@@ИгорьКузнецов-т8р can you elaborate please on how did you fix this issue? I am having the same problem.
@@ИгорьКузнецов-т8р hi i have the same problem you had, can you share how did you solve it? Thanks!
teaches python methods by the day, makes meth by the night. #breakingBad
haha, awesome video by the way!
Yo Mr. White!
Yo!
Thank you so much
You're welcome very much!
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.
What did you do differently from the video? I suggest putting it aside for 2-3 days and then rewatching the video and checking the code. Your error will likely jump right out at you with a fresh set of eyes.
can we extend multiple pages?
You can import more pages
@@Codemycom Thank you
@Codemy.com, Which Technology/Tools must be used to build very efficient e-commerce mobile app?
Can you please suggest me ...
It doesn't matter. Use the tools you like.
Codemy.com 😂. So for web site Django and mobile app Kivy ok ?
@@naveenkumarm7339 Sure.
Codemy.com Thanks
thanks
No problem!
ty
Welcome!
You did an Awesome job on these Django videos. Thanks.
Please help me to fix the below issue:
After extended base.html (only home.html), its Returning following Error
Using the URLconf defined in dentist.urls, Django tried these URL patterns, in this order:
admin/
[name='home']
The current path, index.html, didn't match any of these.
# Website url.py
from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
]
# views.py
from django.shortcuts import render
# Create your views here.
def home(request):
return render(request, 'home.html', {})
Am i Missing any Path Here ? Since its returning "The current path, index.html, didn't match any of these."
Or Django Installed Version issue ?
You don't have an index.html path created. Why are you trying to open an index.html page?
I haven’t created Index.html. It’s home.html. After changing base.html, above error is returning. Basically I think it is showing error for base.html.
@@naveenkumarm7339 But are you typing index.html into the web browser?
@@Codemycom No. I have just made changes in the home.html and base.html
@@naveenkumarm7339 Somewhere in your code you referenced index or index.html
Nice video as always! Interesting that the message still sent to my email inbox with EMAIL_PORT = '587' in the quotation marks.. no issues there it seemed
Interesting!
TemplateDoesNotExist at /
base.html
Did you put your template directory in the wrong place? Did you put base.html in quotes?
I followed your video everything does work I got this error Desktop\webpage\web\accounts\templates\accounts\home.html, error at line 1
site-packages\django\template\backends\django.py", line 84, in reraise
home.html
1.start code
{% extends 'base.html' %}
{% load static %}
{% block content %}
end
{% endblock %}
2.base.html
start
{% load static %}
i have created base.html in templates folder i made mistake i don't now what to do sir
@@mrutyunjayashiremath5589 Try putting the load static line first
@@Codemycom Thank you soo much sir I got
Really awesome contect. It helps me a lot. Besides, i like how you teach people, lovely. Btw, i have a problem after i set the base html and move the footer section to the base.html.
my social media icon become like this ibb.co/L1Nc3JY
do you know why its happen and how to fix this? thanks
Thank you so much
You're Welcome!