Must Watch This Video New Feature in Django 3.1 th-cam.com/video/B7im-zrvOxk/w-d-xo.html 00:00:01 Why should we use Template 00:04:36 Template 00:05:04 What is Template 00:07:33 Create Template Folder and Files 00:09:53 Add Templates in Settings 00:13:17 Geeky Steps 00:15:53 Coding 00:30:37 Write Code in Template Files 00:35:00 Rendering Template Files 00:39:00 render ( ) Function 00:47:40 Geeky Steps 00:50:21 Coding
Who ever is viewing this video a correction tip: the templates in settings.py code has changed in newer version so instead of os.path.join(BASE_DIR,"templates") it now goes like TEMPLATES_DIR=[BASE_DIR/ "templates",]
@@gauravwaghela333 your welcome. :) But if you get a error first try importing a command In 13th line of setting type import os Then type the TEMPLATES_DIR=os.path.join[BASE_DIR,"templates",] and don't forget to type the name template_dirs in the DIRS section. But if this doesn't works then try my main comment section
bro i didnt got any error while coding by adding your comment code> but when i ran the code and add url to my chrome then it shows "TYPE EEROR expected str, bytes or os.PathLike object, not list" what to do?
Mera nam Alauddin hai. main aj 6 mahine se django sikh raha hoon. mujhe bahut cheesein unclear tha. apke channel se pura clear ho giya. Main bariki se dekhta hoon sir.
Ye video dekhne ke baad pura samajh me aaya aur bada acha laga jab khud ka HTML page render kiya. Thank for sharing your knowledge with my type persons.
Hellow ----- My self Abdullah from bangladesh . I Watch your video regularly and now i complete django playlist. i learn everything from your youtube --- thank you --- Brothor I have a request to you that please make a video how to use django custom admin panel instead django default admin templare.... please please please --------- i wait for your notification
sir if i use only write templates in settings.py in dirs it also run so can i continue this process or create temp_dir using path join what is efficient way
I have only this codes in my settings.py file From pathlib import path Base_dir=path(__file__). resolve (strict=true). parent. parent But in this video you have different inbuilt code like... Base_dir=os.path.dirname (os.path.dirname and so on... Why it's different... Ans plzzz...
i have questions. instead of doing like this Templates_dir= os.path.join(BASE_DIR, 'templates'). can we write only 'templates' on DIRS. like this 'DIRS':['templates'].?
No you should not, always pass abs path dynamically as we have done so whenever you will use same template for a different project the path will automatically change. This is called Good Practice.
Sir when i create a template folder n den i install in setting.py file den its shows a error. N sir in ur video import os is already written but in my vscode it is not written. Pls sir resolve my isuue
@@geekyshows yes sir I came to ask this question after watching this video, So it mean that I should learn Django after learning CSS, JavaScript and SQL only. so I should stop learning Django..Is it fix sir..??
Hi sir Sir mera templates folder add nhi ho pa rha hai Mai TEMPLATE_DIR = os.path.join (BASE_DIR, 'templates') Mera python version hai 3.8.5 Kya karun sir.... Please help me
you just explaining too much that's the problem bro we're computer science student so we can understand if you just give us short explain rather than long 1 hours explain
Must Watch This Video New Feature in Django 3.1 th-cam.com/video/B7im-zrvOxk/w-d-xo.html
00:00:01 Why should we use Template
00:04:36 Template
00:05:04 What is Template
00:07:33 Create Template Folder and Files
00:09:53 Add Templates in Settings
00:13:17 Geeky Steps
00:15:53 Coding
00:30:37 Write Code in Template Files
00:35:00 Rendering Template Files
00:39:00 render ( ) Function
00:47:40 Geeky Steps
00:50:21 Coding
at 15:16 -------> TEMPLATE_DIR=BASE_DIR/'templates' instead of TEMPLATE_DIR=os.path.join (BASE_DIR, 'templates')
Who ever is viewing this video a correction tip:
the templates in settings.py code has changed in newer version
so instead of os.path.join(BASE_DIR,"templates")
it now goes like TEMPLATES_DIR=[BASE_DIR/ "templates",]
Ohhh thanks man...
It's worked..
@@gauravwaghela333 your welcome. :)
But if you get a error first try importing a command
In 13th line of setting type import os
Then type the TEMPLATES_DIR=os.path.join[BASE_DIR,"templates",]
and don't forget to type the name template_dirs in the DIRS section.
But if this doesn't works then try my main comment section
bro i didnt got any error while coding by adding your comment code> but when i ran the code and add url to my chrome then it shows "TYPE EEROR expected str, bytes or os.PathLike object, not list" what to do?
@@Ravikumar-fi5pi bro DM me in instagram I'll try to help..
My username is Akhil_1
@@ankuryadav8197 on 13th line write import os
Then proceed with the video instructions..
Mera nam Alauddin hai. main aj 6 mahine se django sikh raha hoon. mujhe bahut cheesein unclear tha. apke channel se pura clear ho giya. Main bariki se dekhta hoon sir.
Ye video dekhne ke baad pura samajh me aaya aur bada acha laga jab khud ka HTML page render kiya. Thank for sharing your knowledge with my type persons.
Thank you so much. after 3 days I solve the error TempletsDoesNotExist by watching your video
Sir aap mere favorite sir he.... bhot basic se sikhate he.... baki youtuber nhi sikhate
Hellow -----
My self Abdullah from bangladesh .
I Watch your video regularly and now i complete django playlist.
i learn everything from your youtube ---
thank you ---
Brothor
I have a request to you that please make a video how to use django custom admin panel instead django default admin templare....
please
please
please --------- i wait for your notification
You are such a good instructor. I am just loving the way you are teaching and I am finding quite interesting to learn Django from you. Thanks a lot. ❤
You are a great teacher . I really appreciate your way of teaching
worlds best teacher... thank you so much sir
Easily we can able to grasp the procedure. Thank you so much.
please tell me in which video tutorial of this playlist have taught what is package ,module , and import ... all all those stuffs
Best tutorials for learning django thank you so much sir
template concept cristal clear thank you so much sir
itna complicated ho jaye ga k ap Dimagh bnd kr k so jayiye🤣
Greate Sir!!!!
Thank you for these videos it realy helped me a lot!!💞
bsdk padaai m dhyaan laga le
Thank you sir so much..🙏❤️
Bhai great ho ap
Nice and detailed 💕
are bhai aap kya Teach karte ho,aapne to mere 15,000 bacha diye
Apka Django tutorial video mai continue dekh rha hu , so apse request ap Django 4.0 me kya-kya news feature Add hua uspe v ek video bnaiye
Nice video bahi
Awesome teaching
Good explanation for each part
So much depth ❤️
Sir mera system main base_dir os.path show nahi kar raha hai
Thanks it is very helpful me
Thank you so much sir! Always grateful
Awesome, thank you
sir if i use only write templates in settings.py in dirs it also run so can i continue this process or create temp_dir using path join what is efficient way
it looks like i will learn now
Geeky Shows 🙌🏻
if we use another word in place of templates will i face any error?
is is already defined name (templated)?
your course is long,you repeat thing many times,i not have much time to complete your course but your presentation is best.
I have only this codes in my settings.py file
From pathlib import path
Base_dir=path(__file__). resolve (strict=true). parent. parent
But in this video you have different inbuilt code like...
Base_dir=os.path.dirname (os.path.dirname and so on...
Why it's different...
Ans plzzz...
Hi Gaurav Watch this th-cam.com/video/B7im-zrvOxk/w-d-xo.html
@@geekyshows ok thanks,now it's work..all doubts are clear...
Thankuuu Soo much sir I am also facing same problem ♥️
2 din se pareshaan tha google kar kar k acccha hua comments pad liya maine thaks @gaurav ye questions puchne k liye and sirji app toh 🔥
Thank you sir
Thank you 😊
thanks a lot vai
i have questions. instead of doing like this Templates_dir= os.path.join(BASE_DIR, 'templates'). can we write only 'templates' on DIRS. like this 'DIRS':['templates'].?
No you should not, always pass abs path dynamically as we have done so whenever you will use same template for a different project the path will automatically change. This is called Good Practice.
@@geekyshows yes sir thank you.
Django 4.0 ka new feature pe ek video bnaiye
zindabaad...
Sir when i create a template folder n den i install in setting.py file den its shows a error. N sir in ur video import os is already written but in my vscode it is not written. Pls sir resolve my isuue
they have used path instard of os its new feature in Django
So watch 24th video in this series u will understand
how did you write that html code by simply typing only ! this please answer ?
Watch th-cam.com/video/VP12E_Q3_Ag/w-d-xo.html
Sir is it compulsory to learn HTML, CSS, javascript before learning Django as I only learn till advanced python concepts like oops.please clarify me.
th-cam.com/video/tsDWo1dlZPw/w-d-xo.html
@@geekyshows yes sir I came to ask this question after watching this video, So it mean that I should learn Django after learning CSS, JavaScript and SQL only. so I should stop learning Django..Is it fix sir..??
@@chaitanyakrishna9398 bhai w3 se 2 din me sikh jayga html css me bhi pehle yhi sochta tha
Thank you
Sir please provide download link for ppf
in setting.py "os is not defined" error is coming
please guide
import os
For django new version do 'DIRS': ['templates']
Why someone dislike this video????
Want totorial on Django template Engine. from Bangladesh
thanks
i am facing error Exception Type: TemplateDoesNotExist
Exception Value:
courseone.html
Same here !!....if you know tell me
@@SurendarKumar-si3hd same
TemplateDoesNotExist ye aaa raha hai aisa kyu ho raha hai maine pura check kiya but kuch samaj nahi aa raha hai pleas help
kyuki path sahi nahi diya. jiski wajah se wo template ke file ko found nahi kr paa raha
@@puneetsharma2108 okey me recheck karta hu thanks
Os error: [ winerror 123] show kr rha h isko kaise resolve karte h
Import os
Ye commend type kar bhai page ki top par
th-cam.com/video/B7im-zrvOxk/w-d-xo.html
Next playlist is kivy please
Hi sir
Sir mera templates folder add nhi ho pa rha hai
Mai TEMPLATE_DIR = os.path.join (BASE_DIR, 'templates')
Mera python version hai 3.8.5
Kya karun sir....
Please help me
Watch this Video th-cam.com/video/B7im-zrvOxk/w-d-xo.html
It is not working for django version 4.0.5
yup same here ab sahi m man kar raha hai sone ka
2.48 dimag band karke ...so jaiegaa #haha
watch video in x1.25 or x1.5 speed...thank me later..!!!
Plzz sir app plzz flip flop ki video b bna kr upload kr do..
Filp folp or binary adder
sir, I have to install Django Version: 2.2.6 and Python Version: 3.7.4, please answer on my request.
❤🎉
2:46 🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣
done
you just explaining too much that's the problem bro we're computer science student so we can understand if you just give us short explain rather than long 1 hours explain
So plzz help it sir
so confusing
Got the Error " TemplateDoesNotExist at /cor/coursedj/ ".
It works fine with "HttpResponse"
Please give some advice
Thankyou so much sir 🙏🙏🙏