Python Django Tutorial: Full-Featured Web App Part 3 - Templates

preview_player
Показать описание
In this Python Django Tutorial, we will be learning how to use templates to return more complex HTML to the browser. We'll also see how we can pass variables to our templates as context. Let's get started...

The code for this series can be found at:

Snippets:

Bootstrap Starter Template:

✅ Support My Channel Through Patreon:

✅ Become a Channel Member:

✅ One-Time Contribution Through PayPal:

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist

✅ Equipment I Use and Books I Recommend:

▶️ You Can Find Me On:

#Python #Django
Рекомендации по теме
Комментарии
Автор

people would pay you more than a $100, but guess what, you are providing it for free here.
The best learning channel on youtube

deepakseervi
Автор

"Let's go over that one more time so it's 100% clear." This is fast-becoming my most favorite phrase in the English language. Thanks Corey!

lawrenlelko
Автор

I am shocked at the quality of this series! Literally better than the best selling Udemy courses. Subscribed

MrAjiii
Автор

Really like the mini recaps after each sub-section. Pretty solid tutorials!

srinathkumar
Автор

The best programming teacher online ever

bowenwang
Автор

This is my second year as a Web Dev and i still come here, Thank you for everything you basically started my career Corey.

karimkohel
Автор

Thank you so much. Great tutorial. Hope you will comeback soon .
1:03 - templates
3:25 - install app
5:21 - load & render template
9:49 - display data in template
21:20 - template inheritance
26:16 - bootstrap
32:14 - snippet files
34:23 - static file
41:55 - URL tag

congcuongnguyen
Автор

I cannot express how grateful I am that I came across this page. The first thing I'm going to do with my first paycheck is gonna be supporting you. Thanks a lot Corey.

efesezenk
Автор

This guy must be one of the best teachers on the planet. I literally get goosebumps when he takes the time and says 'lets go over that one more time'

billywang
Автор

You have a gift Mr Corey, You can teach people with ease, I recommend your videos to every single person i know who struggles to learn smth related to python. All I hear after my recomendations is "Thank you very much, this guy is incredible!" . Well I THANK YOU Mr. Corey, Watching your videos got my career one step further. Youtubers like you should have a donation section open because there is no better way for people to show you their appreciation for the hard work you do, other than leaving a nice comment like this, or donating some money so you can keep up the good work.I think you should also consider writting a book about python.

georgepoulakis
Автор

Corey is the undisputed best teacher on YouTube. He doesn't skip steps, explains everything, and even intentionally makes errors and explains them. No one comes close. More simply put: Corey is the GOAT.

snerd
Автор

I don't know, if this guy is reading from a script or not. Seems like he's not. It amazes me, how every sentence is valuable. No rambling, no fillers or time delays. Every sentence is valuable. Information density on another level!

tristanmoller
Автор

dude this is insane. hours of quality content. will PayPal u as soon as I'm not broke.

sanjj_
Автор

For those who are seeing errors following the last part of the video (around 42:00), the base template part href = "{% url < insert some url here > %}", it is probably because of the Django version used in the video being outdated. Newer Django versions require the addition of a namespace to the paths in the urls.py files (both project and app ones).

You can do this by going into the project/urls.py file and adding a "namespace" field inside the include function, for instance

path( ' ', include( ' blog.urls ', namespace = " < insert you namespace here >" ) )

Then, inside the base HTML file, on the "href", you should basically add inside of the quotes the prefix ' < the namespace > : ' before the url. More precisely:

href = {% url ' < insert the namespace of the url that you want to use here > : < insert the url here > ' %}

On the blog/urls.py you can simply add a variable with a string after imports, for instance

blog_namespace = " < insert the desired name here > "

Hope that it helps.

DanielRodrigues-ndlu
Автор

Watched a tons of courses but none of them were able to explain the concepts as clear as Corey, still the best course on the internet in 2022.

yusufn
Автор

Whenever I start any course to learn I always search tutorials of way you make understand is amazing..as a beginner I didn't found any other tutorial better then yours such easy language ...really want to learn like you.thanku sir Corey.

satyammishra
Автор

The feeling you get when you understand every single detail, such that you can explain and create the code from scratch if anyone asks is a really beautiful feeling.

Thanks, Corey, for your time! I can't imagine what it must have been for you when you were starting all this.

SaifUlIslam-dbnu
Автор

I'm brazilian, and I have the luck to understand the minimum of english to watch your tutotials. I'm learning so much with you. Thank you so much!

LuanGalvao
Автор

I'm somewhat familiar with Django already and most of the introduction episodes' content dont extend my knowledge, but I knew it's worth watching, since you're going to go deeper than anyone else in terms of explanation and I didnt get disappointed. That detailed explanation of Installed Apps list just proves that you should be worldwide famous for your style of teaching.

kobas
Автор

I literally ditched a udemy course midway for this playlist.
Corey taught me Flask, Corey's gonna teach me Django too!
🚀

capeandcode