Тёмный

Python Django Tutorial: Full-Featured Web App Part 5 - Database and Migrations 

Corey Schafer
Подписаться 1,4 млн
Просмотров 668 тыс.
50% 1

In this Python Django Tutorial, we will be creating database tables for our application using Django models. We will also see how we can use the Django ORM to query the database and filter through results. Let's get started...
The code for this series can be found at:
github.com/Cor...
Django Date Filters:
docs.djangopro...
✅ Support My Channel Through Patreon:
/ coreyms
✅ Become a Channel Member:
/ @coreyms
✅ One-Time Contribution Through PayPal:
goo.gl/649HFY
✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
✅ Corey's Public Amazon Wishlist
a.co/inIyro1
✅ Equipment I Use and Books I Recommend:
www.amazon.com...
▶️ You Can Find Me On:
My Website - coreyms.com/
My Second Channel - / coreymschafer
Facebook - / coreymschafer
Twitter - / coreymschafer
Instagram - / coreymschafer
#Python #Django

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 934   
@sleepychildkungfu
@sleepychildkungfu 6 лет назад
Dude. If I ever make any money from web development I will throw some your way. You are the golden god of tutorials and I love you.
@coreyms
@coreyms 6 лет назад
Thanks!
@quasa0
@quasa0 5 лет назад
Did you succeed?
@mohammadsamir2713
@mohammadsamir2713 5 лет назад
me, too
@robertweisejr265
@robertweisejr265 5 лет назад
I completely agree these tutorials are excellently put together. I have taken classes elsewhere and they are either too slow or too fast. Corey's pace and how he describes what is going on is outstanding throughout!
@sicko_drops
@sicko_drops 5 лет назад
@@quasa0 lol
@joefanningartist
@joefanningartist 4 года назад
Thanks Corey, not everyone can afford education so thanks brother : )
@EOO-Stand
@EOO-Stand 4 года назад
leave alone afford, how about understand it too hahaha. This videos are great
@ishanpand3y
@ishanpand3y 4 года назад
sir this is the third series from you I'm learning. Actually I am regretting why I've not watched u earlier. THIS IS THE BEST OF THE BESTS CHANNELS on PYTHON. HUGE RESPECT TO YOU SIR... *from India import love*
@pAirA_
@pAirA_ 4 года назад
have to like this comment for the clever import statement
@rahulnandre4422
@rahulnandre4422 3 года назад
import love love.more()
@NilakshMalpotra
@NilakshMalpotra 3 года назад
@Anoop Janakar I'm glad :D
@harshitheya
@harshitheya Год назад
love.objects.all()
@quannmtt3110
@quannmtt3110 5 лет назад
This is the first one that I actually have to comment on. I haven’t done that before on RU-vid. You are the master of explaining everything with simple words. Your tutorials are just gorgeous and outstanding. I remembered when I started learning Python almost 2 years ago, your tutorials helped me a lot. Really. Its amazing. Since then, I think I have recommended your channels to at least 4 people. You deserved much more views than the current stats. Thank you so much and wish you the best for everything you do in the future. I will always support you.
@coreyms
@coreyms 5 лет назад
Thanks, Quan! I appreciate the comment
@troyke
@troyke 4 месяца назад
I'll admit, you have some pretty stiff competition: Codemy, Idently, Tech with Tim, etc, but I will have to say that you're the best Teacher on youtube! You go at the perfect pace! You explain things well, etc You really couldn't ask for more! My hat's off to you CoreyMS!
@zeelsinojia1289
@zeelsinojia1289 4 года назад
Everyone: "World is going through pandemic!!!" Corey: "Let's clear the screen first" :) Love your tutorials and explanation man Keep it Up man
@agentNirmites
@agentNirmites 4 года назад
World is going through pandemic, and we both are learning django!
@guardkaiser9344
@guardkaiser9344 4 года назад
me three bradah
@agentNirmites
@agentNirmites 4 года назад
@@complex1511 ok, counter += 1 BTW great content here in this playlist... 👍
@shashanksharma7242
@shashanksharma7242 4 года назад
@@agentNirmites LOL increment the counter by 1.
@agentNirmites
@agentNirmites 4 года назад
@@shashanksharma7242 ok, my database says 5, is it correct ? I am using firebase 😂
@congcuongnguyen413
@congcuongnguyen413 2 года назад
0:15 - object relational mapping - ORM 1:52 - create Post model 5:34 - ForeignKey 7:39 - make migrations after modify models.py 9:19 - have a look on SQL code that will be migrate 11:25 - why migration useful 12:05 - query database on shell 18:27 - __str__ method 24:41 - special query set of user model 28:11 - pass data from model into view 31:13 - template filter 34:52 - add Post model into admin page
@Paul-Olkov
@Paul-Olkov 10 месяцев назад
thanks, man. I'm russian and I 'm not strong enough in English. But I can understand almost 90% you say using subtitles! I wanna say that you have a very undestandable vocabulary and a very clear pronunciation! Thanks one more time!
@imblue2844
@imblue2844 8 месяцев назад
Watching this from Kazakhstan. First I tried to look up some good tutorials on the Russian youtube but they all were bad. Then decided to go on English youtube and found that gold.
@Lumkoz
@Lumkoz 5 лет назад
I cant stop, this guy bloody hell, angels come in disguise, shout out from South Africa, your my superman chap
@coreyms
@coreyms 5 лет назад
Thanks! Glad you’re enjoying the series!
@SzymonRuszała
@SzymonRuszała 6 месяцев назад
I like how you present knowledge, it's far more easy to understand then reading the django book tutorial. Thanks
@raphaelpz
@raphaelpz 6 лет назад
I am commenting here again to thank you for the amazing work you've done in sharing your extensive coding knowledge. Really impressed by how you make this all feel simple, it is a rare skill and requires total mastery of the subject matter of course... hats off.
@coreyms
@coreyms 6 лет назад
Thanks! Glad you’re finding the videos helpful.
@FreeStepTAYLOR
@FreeStepTAYLOR 5 лет назад
I`ve been using PHP for quite a long time, a friend told me about django and python, and since ive started searching for tutorials, your channel is the best so far, congrats my man, you are a amazing teacher, keep up the good work, thank you so much
@mohamedelogail1992
@mohamedelogail1992 5 лет назад
I agree with you cause I've been using PHP for a long time too, but Python and Django makes life easier for web apps, especially with an outstanding teacher like Corey
@kamrulahsan06
@kamrulahsan06 5 лет назад
Agree, I've been using PHP for a long too. Now I am shifting to python and Corey's tutorial is the beast. I've followed enough python tutorial, read book but his tutorial best among others.
@prettycode4028
@prettycode4028 4 года назад
Bro, php is bad.
@Saradomin65
@Saradomin65 4 года назад
@@prettycode4028 Developing web apps with raw php is bad yeah, but working with frameworks like Laravel and CI makes it more easier. Though have to say, Python and Django just makes it more easier.
@sahilamin219
@sahilamin219 4 года назад
You never need to say" this video is getting longer " just keep making them 🙋🙆🙌
@anand_dudi
@anand_dudi 2 года назад
He made this video in 2018 in so depth not even today's youtuber makes these days
@ShahidKhan-er1sw
@ShahidKhan-er1sw Месяц назад
That's the reason I'm watching 5 years old playlist.
@maureento5435
@maureento5435 4 года назад
These are hands down the BEST Django app tutorials I've seen. It's not just the poll app that we can easily make with the documentation, it's not just looking painstakingly through the documentation, and it's not some simple app! This is absolutely outstanding and so simply explained - I would not have been able to create this on my own without this guidance; Here's to creating a full-stack app on my own after this! ❤️
@swatisrivastav5620
@swatisrivastav5620 4 года назад
You level of teaching is simply amazing. Thank God that someone like you exist.
@mrmuranga
@mrmuranga 5 лет назад
This lecture took me awhile, I re-watched it several times to understand BUT after everything its now very clear . How models relate to a database table and relevant fields... I would advise anyone watching this to not give up easily rather re-watch several times and try and grasp the concepts rather than cram.....Corey introduces a very interesting perspective here which i had not seen in a past django tutorial which is the django shell from where you can actually run queries ...its after this that you gained insights on e.g why we have the entry: Post.objects.all() within this function: def home(request): context = { 'posts': Post.objects.all() #Displaying all posts..refer to querying on django shell...it actually runs a query } return render(request,'blog/home.html',context) Great Stuff Corey !
@Fortyfester
@Fortyfester 5 лет назад
I was also having a lot of difficulty until I downloaded a program that displayed the database contents onto a GUI. The thing that really threw me was how django refers to tables as models rather than as tables. Once I understood that we were just creating a new table inside of the database called (projectname_post) it all began to make a lot more sense.
@masonqian6964
@masonqian6964 4 года назад
having some database knowledge really helps here
@toastrecon
@toastrecon 4 года назад
Awesome, Corey! Seriously never seen a more clear and yet comprehensive tutorial on the internet. Thank you.
@renejacques8288
@renejacques8288 4 года назад
Corey, I was always told and taught that ORM stood for object relational model, I believe. To me that was the hardest thing to understand. Now you say it's object relational mapper, it makes sense. It's a mapper; that's all there is to it.
@troyke
@troyke 4 месяца назад
5-20-2024 Created my very first database-driven website - thanks to YOU! Thank you!
@llewellynhattingh3496
@llewellynhattingh3496 4 года назад
You know what... I've BEEN trying to actually get whats up with Object Oriented Programming.. And now I finally do, this is super helpful especially in the workplace, thanks so much! I hesitated to watch a 40 min video, but it is every second worth it.. thanks Corey
@ogyrfiwargf
@ogyrfiwargf 3 года назад
Man, your free course is honestly better than a paid one I've finished recently. Way better.
@victorystocktv
@victorystocktv 4 года назад
00:59 we can represent our database structure as classes, those classes be called models 2:15 class POST(models.Model): inherit from models.model 5:10 default = timezone.now 9:20 makemigrations: before we actually run the migrate command, actually create this table in our database 10:50 models.py 파일 it wrote this back-end SQL for us (SQL 몰라도 됨. 그래서 편리함) Thank you
@raphaelokai5981
@raphaelokai5981 3 года назад
Your app must be installed first (inside the settings.py) In our case you'll include 'blog.apps.BlogConfig' in our INSTALLED_APPS tuple inside settings.py
@orkhanahmadov9963
@orkhanahmadov9963 3 года назад
This man is the best python developer and the best tutor I have ever seen... I learned Flask with him and without even visiting the Django documentation, I started watching these tutorials and now I feel like learning the core concepts of Django Framework. Thanks So much Corey !
@unchiusm
@unchiusm 4 года назад
Corey, the work you are doing for the python community is amazing. You are setting a new standard for tutorials. Keep doing what you are doing because you are one of the best if not the best at it ! . Good luck to you and cheers!
@rxlvnd3397
@rxlvnd3397 4 года назад
I love you man. And for anyone who needs transcripts of these, you can click on the three little dots '...' next to the 'SAVE' option below the video, select open transcript, then copy and paste it anywhere you'd like. It helps to have a written version of the tutorials
@PolyRocketMatt
@PolyRocketMatt 5 лет назад
The way you explain everything you do in careful details is just outstanding! No other tutorial on youtube actually got me pretty "fluent" if I could say so in Django. This tutorial did the trick. Thanks and keep up the work :)
@vishwanathpujar8704
@vishwanathpujar8704 Год назад
Corey thank you very much.. I'm regretting why I didn't learn from your videos from beginning... Anyway never too late to learn things... THANK YOU
@gregtuve1109
@gregtuve1109 5 лет назад
You have a gift. You're the first channel I've ever supported on Patreon--at double the minimum level. It will be more if I can get my business a little further off the ground. I've never worked in programming, but I took a raft of programming courses 15 years ago. Back then, it was C++. Everything is better now--languages, frameworks, and tutorial videos (at least those by Schafer).
@coreyms
@coreyms 5 лет назад
Thanks so much! That’s such a big help and I really appreciate it!
@xtent2736
@xtent2736 4 года назад
I've been programming some backend for my startup's website, and let me just say, I appreciate your work. I honestly can't believe this golden resource is free. If my startup succeeds, I will make sure to send some money your way, because that's just how helpful this was
@Jam-iv6xz
@Jam-iv6xz 4 года назад
How has it gone?
@francescovecchio3931
@francescovecchio3931 5 лет назад
I have virtually no experience in web application design technique. But your tutorial is introducing me to this world. A fabulous tutorial. Unfortunately, not having much practice with spoken English, I struggle to follow the phonic contribution of the course; but your teaching method makes up for my lack! Thank you! Francesco
@perplexinginkslinger
@perplexinginkslinger 5 лет назад
This is the best Django/python tutorial I've ever seen when it comes to shell/database. For the first time I actually understand this part of it! Again, thank you so much for providing this.
@igajohnbosco2428
@igajohnbosco2428 5 лет назад
These are the best django tuts I have come across ever since i chose this django path. Surely I must contribute. You so on point. like you reading what my mind ever wanted
@skumarr53
@skumarr53 4 года назад
I thought web development was hard until I got introduced to this series. All I needed was a great teacher.
@dominicdit
@dominicdit 5 лет назад
django is so powerful, coming from flask, django is the dream. thank you Corey, you are the best!
@sivvie4993
@sivvie4993 6 лет назад
I've watched many Django tutorials including the paid one but yours is the easiest to understand you did not skipped any details too! Impressive work and I've learnt a lot from your video, already support through Patreons, hope you're making more videos to help people!!! Can't express my appreciation but thank you so much!
@coreyms
@coreyms 6 лет назад
Thanks!
@namesare4fools
@namesare4fools 5 лет назад
GREATEST PYTHON & DJANGO TUTORIAL EVER.. I COULDNT FOUND ANY BETTER, EVEN PAID ONES
@barkalez
@barkalez 5 лет назад
I've been wanting to learn Django for 3 years, I've seen many courses on RU-vid and none have approached me so I can understand, you're the only one who has. Thank you. I love you.
@Abhishek-yu4ys
@Abhishek-yu4ys 5 лет назад
check out the durgasoft python and django course
@seantransformice
@seantransformice 5 лет назад
You are an absolute god dude. Can't love your channel more. As soon as I can I'll get donations going your way, mark my words :) Thank you so much for this you have no idea how helpful your videos are!
@coreyms
@coreyms 5 лет назад
Thanks!
@timeenough-l7b
@timeenough-l7b Год назад
past years i was on my undergrad class days,and you save me from datascience and now i am needing to learn more on website, you are my savoior to saving soem complex lesson to an easy way,thank you so much sir
@Ledinos1
@Ledinos1 5 лет назад
Thanks Core ;) Just started learning django, I'm coming from raw python. Your tutorials are so clear and easy to understand ;)
@EOO-Stand
@EOO-Stand 4 года назад
finally someone who makes django coding make sense. thank you again for your detailed, step by step tutorial.
@Unclaimed3172
@Unclaimed3172 4 года назад
Coming from the Laravel framework, this is an easy transition for me to learn Python and its framework. Thank you for the great series
@pumpkinhead6646
@pumpkinhead6646 3 года назад
Laravel is sweet, but man I love python so much more than PHP
@janhitmejaari3850
@janhitmejaari3850 17 дней назад
Truly a gem on RU-vid. Thanks a ton Corey for putting this up.
@pradhvanbisht2177
@pradhvanbisht2177 6 лет назад
I have been waiting for so long for you to release your Django course. I have been watching your python videos for a long time, doing a great job man :)
@vincenttang6984
@vincenttang6984 5 лет назад
I didn't realize how powerful and simple Django really is! Thanks for making these awesome tutorials
@DrYunfattpao
@DrYunfattpao 6 лет назад
Great tutorial, thanks Corey! As a tip for anyone finding the python shell cumbersome, install ipython for a much nicer interface! It has auto-completion, colourisation and even highlights brackets. Just do 'pip install ipython' in your virtualenv and then run the shell normally ('python manage.py shell')
@lardosian
@lardosian 5 лет назад
thanks man, i was actually wondering what ipython is, now i know!
@DrYunfattpao
@DrYunfattpao 5 лет назад
@@lardosian no problem! ipython is really great to use
@markwilde5683
@markwilde5683 5 лет назад
Thank you very much for the tip Mr Leaf. It feels and looks significantly better using ipython in the shell.
@karm0s304
@karm0s304 5 лет назад
Thanks for the tip mate !
@thiagonunes2751
@thiagonunes2751 2 года назад
Congratulations, you are the best teacher in RU-vid. Thanks for all help!!!!
@r.w.7267
@r.w.7267 4 года назад
I want to know we really appreciate all your hard word and content I will definitely sort you like the video and donate. Thank you sir!
@coreyms
@coreyms 4 года назад
Thanks!
@minnami778
@minnami778 3 года назад
Thank you so so much for the tutorials. I really have to make a comment here. You are such an amazing teacher /person. Stay safe.
@gardenbrazil1959
@gardenbrazil1959 5 лет назад
I'm very happy with your classes. Thanks a lot.
@md.bodruzzamansifat7357
@md.bodruzzamansifat7357 4 года назад
I really want to know who are these geniuses, who can dislike a video like this. If I had enough money, I would file a case in court against them. Thanks for this. You have my gratitude and respect. I will wait for your upcoming videos.
@sumanmalla9706
@sumanmalla9706 5 лет назад
Thank You Sir !! Love from Nepal
@JonnyRootsDem
@JonnyRootsDem 3 года назад
You are the best Corey, for so long I've been wanting to use Python inside of browsers. I'm really grateful for the tutorials mate, i'm sure many others are too, thank you.
@frclasso
@frclasso 5 лет назад
Another amazing tutorial, You are the best one Corey.
@amirshehzad3352
@amirshehzad3352 5 лет назад
Like they say, teaching is an art. Thanks Corey Schafer for such wonderful tutorials. Waiting for more awesome playlists.
@parthivijaya195
@parthivijaya195 4 года назад
Man! you're "code god "for me. The best tutor i've ever seen
@336_saranyamaity8
@336_saranyamaity8 3 года назад
This Django series is even better than the Flask one and easier to understand. And people say Flask is easy!! With Master Corey everything is easy !!!
@matamatamata2604
@matamatamata2604 5 лет назад
Great tutorials! Thanks for sharing this.
@kevinkrause6901
@kevinkrause6901 2 года назад
just started using python & django and cannot underline enough how awesome your videos are in terms of detail and understanding! Thanks!
@InsideElite
@InsideElite 5 лет назад
wow django so similar to laravel thx for the great tutorials!
@internetbuzz7143
@internetbuzz7143 3 года назад
Respect from INDIA. Great tutorials from you sir.
@OtherSideMystery
@OtherSideMystery 2 года назад
To anyone who ran into this error: 'QuerySet' object has no attribute 'post_set' even though your model is named correctly, this might help when Corey defined the user attribute, he added .first() to the end of the code which made it no longer a QuerySet. If when you type user it says QuerySet infront of it, you need to redefine user and add .first() at the end like this: user = User.objects.filter(username='usernamehere').first()
@pixmestudio
@pixmestudio 4 года назад
Best instructor on youtube. Amazing
@andresfernandoaranda5498
@andresfernandoaranda5498 5 лет назад
For those who get Post has no attribute 'objects' as an error in your IDE: This is because your IDE (vscode in my case) can't find it, doesn't mean it is an error and that it won't run. To avoid the error msg, you can: - Add to the 'Post' class (in models.py): objects = models.Manager() -- OR -- - Install pylint-django (Tutorial here for vscode: stackoverflow.com/a/47343542/4544940)
@TheAndrewMShow
@TheAndrewMShow 5 лет назад
You sir are a lifesaver stuck on this forever till I decided to check the comments and found this!
@danielratner
@danielratner 4 года назад
I love you!!!! It took so long to solve this issue
@vidura23
@vidura23 3 года назад
I just made you a small donation. You taught me so much about Python and now Django. Thank you! I will give you more if I go on to make money from coding
@gautamnair8886
@gautamnair8886 4 года назад
Wow thanks Corey. I guess you were recording this video in the middle of the night. 30:27. Thanks for working hard to get all the content out fast!!!
@Lucas-zd8hl
@Lucas-zd8hl 3 года назад
I think his computer uses the AM/PM system. Doesn't rule it out, though
@sethmanning6493
@sethmanning6493 3 года назад
django defaults to the utc timezone so he could have been in a different timezone
@srirajasingam8920
@srirajasingam8920 3 года назад
You are an absolute teaching god. You also must know your subject insanely well to teach it so precisely. Can't believe you only have 10K likes. This is so much better and more concise many more expensive paid courses.
@blahblahblah747
@blahblahblah747 4 года назад
once I get my job, ima donate to your patreon. cant do it now cause im broke af LOOOOl
@jschvach
@jschvach 4 года назад
These are seriously GREAT tutorials. I can't believe these are free. You need to charge for these! I feel guilty that I'm receiving this quality of teaching for nothing, and you honestly deserve compensation. I will gladly contribute to your efforts. Again, just ecstatic I found your channel!
@porametpathumsoot3286
@porametpathumsoot3286 5 лет назад
Hello, I have a question, while trying to follow you and call Post.objects.all() its return error post has no ‘objects’ member. I tried to find solution online but nothing work out. What do I do wrong? I love your video. Thank you for the great jobs! Edited 20/06/2019 So after a while I check the SQL code and find out that the problem lies within this ... “auther_id” integer NULL REFERENCES... The actual message may not exact the same but this is cause when I mess up something about the field and when do a makemigrations or migrate, it ask me how to deal with something about change NOT NULL REFERENCES to be NULL how I choose so while thinking that it is some serious problem I add some code and now when I look at SQL it said integer NULL REFERENCES , THIS IS THE REAL PROBLEM. My solution is delete 0001 0002 or whatever its create and do it again while let the code handle it themself. Sorry if this dont help if you have similar problem.
@ivardu
@ivardu 5 лет назад
Switch to Python Shell --> (django_env) E:\Projects\django_env_project>python manage.py shell Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) will result in error if you call before importing Post >>> Post.objects.all() class Traceback (most recent call last): File "", line 1, in NameError: name 'Post' is not defined >>> from blog.models import Post is giving me one result as I executed one already >>> Post.objects.all() >>> from django.contrib.auth.models import User >>> User.objects.first() Storing the user details in variable for passing in Post() class >>> var2 = User.objects.first() Storing the Post() obj to >>> post_2 = Post(title ='blog2', content ='Second post', author = var2) a variable post_2 When you call you will get no results in my only one result instead 2 >>> Post.objects.all() because you need to save the data to the database >>> post_2.save() >>> Post.objects.all() Now you see two results
@przemeklelewski7608
@przemeklelewski7608 4 года назад
I tried to learn from other tutorials, but I failed. After 5 parts of your tutorial Corey, I'm still here. You have got a big knowledge and I wonder how to remember all you tought me...
@unity_with_timoteo
@unity_with_timoteo 5 лет назад
Hello Guys for those that have the message: The Post class dont has objects. Make it, put the code: objects = models.Manager(), in the Post class, below of author = models. .... Cheers!!!
@tamassimon7544
@tamassimon7544 5 лет назад
OMG thank you so much!! Very helpful comment
@sprayzu
@sprayzu 5 лет назад
To make it clear for everyone who has this issue .If you get this issue > Post.objects.all() this line instead of , then you should add objects = models.Manager() to models.py file - below author = models .
@barsonik3855
@barsonik3855 5 лет назад
mine gives the same error even after doing that so no idea what ive done wrong lol
@sairammaddala9069
@sairammaddala9069 4 года назад
thanks so much. this was very helpful
@shaafijahangir9653
@shaafijahangir9653 4 года назад
@@barsonik3855 same, did you find a solution for it?
@NitinSawant1988
@NitinSawant1988 4 года назад
Corey... You are the best teacher i learned from. Whatever Python i have learned is because of you and your teaching urges to learn more. Thanks a lot for these awesome vidoes.
@XxSmAsHeN619xX
@XxSmAsHeN619xX 5 лет назад
Who's here before 10 million views?
@zulfiqarabid2755
@zulfiqarabid2755 5 лет назад
shittt... I missed it. wish I could be here before 10 mil
@vrushangdesai2813
@vrushangdesai2813 5 лет назад
For people facing issue with migrations just type: python manage.py makemigrations blog or ur app name , Thanks For This Knowledge Corey :)
@MrKelbessa
@MrKelbessa 5 лет назад
thank you soooo much i wasn't able to pass that point.
@bendoy4555
@bendoy4555 4 года назад
Little flair you can add when displaying dates on posts: use the html title attribute to give the full date and time when you mouseover the date.
@jschvach
@jschvach 4 года назад
what do you mean?
@pAirA_
@pAirA_ 4 года назад
@@jschvach He means the default view can have just the date without the time, but if you put your mouse pointer on the date text, then a small window can appear showing the time as well.
@josephralph7640
@josephralph7640 5 лет назад
I have a doubt here. Is the constructor for the Post class autogenerated ? Since we did not create it, we just specified the field names in the class.
@life0verflowz
@life0verflowz 5 лет назад
i am new beginner to python , and actually your tutorials made it so easy for me , you are the best :)
@KASANITEJ
@KASANITEJ 5 лет назад
"Author_id" during creation of new row in the Post table... what is that?
@stanleyjohn4670
@stanleyjohn4670 5 лет назад
I think it relates to the User table ids'. Since there is a foreign key in the Post table, the author_id shows the id reference for each user. Author_id is created automatically once a one-to-many relationship is made. I guess thats how it works
@mrmuranga
@mrmuranga 5 лет назад
@@stanleyjohn4670 This was also confusing to me at first, by using author_id and assigning that to user.id , it essentially marries the user.id to a post....when you use the _id, django knows you want to associate this with a specific foreign key. There are also other ways to do this BUT Corey had already run a query to extract the user and assigned it to the variable - user...
@stanleyjohn4670
@stanleyjohn4670 5 лет назад
@@mrmuranga Well. this is just one way of doing it. So choose what's comfortable lol
@rp2804
@rp2804 4 года назад
Since author is a ForeignKey to the Post model, Django knows to expect a User object. It just automatically adds the option to add the id for that foreign key also. So Django added that in the background. FROM COREYS ANSWER WAY BELOW >>> NOT MINE
@josephgitonga8033
@josephgitonga8033 3 года назад
you are a great Teacher. i have looking around for someone to teach me python and yours are clear
@appliedcomputerprogramming5206
One of best django tutorials. Clear lucid deep knowledge
@orkish2844
@orkish2844 5 лет назад
I wish I was born in the 1960s so I didn't have learn these arbitrary frameworks
@cagriazcan7711
@cagriazcan7711 4 года назад
20% of my first webdev related pay check is gonna be yours. Thank you for this amazing tutorial.
@coreyms
@coreyms 4 года назад
Ah thanks! Best of luck!
@luvvermani1240
@luvvermani1240 4 года назад
Corey hoping you make it in google and he gets instant 2k in a day xD. Excellent series btw, if I ever get a job based on all this, I'll definitely pay as well, also a suggestion, do a good Django REST framework series, understanding API is proving to a challenge for me, I'm sure your series would help, me and countless others.
@sante4940
@sante4940 4 года назад
I have just finished with this video-5th, Corey, I can surely tell you there are many who know technology but very few can present like you do. coming Monday 4th may 2020. i am starting with new Django project, I feel confident I can pull this off, thanks to your tutorials....
@vladyslavkotov7570
@vladyslavkotov7570 2 года назад
stumbled across this channel some weeks ago, just devouring the content. Corey, your ability to explain is fantastic. thank you, thank you for this amazing gift. 11/10
@egorkolobov2392
@egorkolobov2392 2 года назад
After a course of NestJS in my university, Django seems so cool, simple and straightforward. Many thanks for your videos, they are great!
@adnanafridi5456
@adnanafridi5456 4 года назад
till now you made my concept so clear and according to me you are the best instructor for python and django.
@AFunkyHypnoCat
@AFunkyHypnoCat 2 года назад
I DO NOT DESERVE THIS PLAYLIST THANK YOU
@marcusmeyer3266
@marcusmeyer3266 4 года назад
Great video Everything you did actually works! (unlike other tutorials)
@yachujoshi
@yachujoshi 3 года назад
The quality of this series is just top notch. You're literally making me love django!
@ayeshaansari2083
@ayeshaansari2083 4 года назад
If it is not for these tutorials it would have been very difficult for me to understand django. Every time a topic is covered in my class i first refer your channel. Your explanation is very clear and easy to understand👌. Thank you very much.
@hrushikeshvazurkar
@hrushikeshvazurkar 4 года назад
Next Level Tutorials Corey. You have reduced the learning curve for a lot of web development beginners like us. No one could have taught Django better.
@oogieboogie7028
@oogieboogie7028 3 года назад
The best video on YT for understanding Django Models. Great work bro! Thanks a lot!!
@waleedmashrequi5173
@waleedmashrequi5173 4 года назад
when I read Corey's comments it feels like he is narrating the line for me in my brain. I can literally hear his voice!
@taiwan323
@taiwan323 3 года назад
Wow this series has explain the concepts better than my bootcamp... I really regret choosing this bootcamp lol
@janphillips7177
@janphillips7177 3 года назад
Thanks. Coding along to your videos is what I imagine pair programming is like.
@david_9607
@david_9607 4 года назад
By far the best Django tutorial I've seen
@PmanProductions100
@PmanProductions100 3 года назад
Your terminal being semi-transparent gave me a heart attack I had burnt something into my monitor lol. Thanks for the amazing content
@MrRahul15937
@MrRahul15937 Год назад
Love you my first django project.. It's been 2 years, and i still take references from it.
Далее
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Просмотров 1,4 млн
Avaz Oxun - Yangisidan bor
14:29
Просмотров 244 тыс.
This Is Why Python Data Classes Are Awesome
22:19
Просмотров 807 тыс.
I built 10 web apps... with 10 different languages
14:23
FastAPI, Flask or Django - Which Should You Use?
9:49
Python Django Tutorial for Beginners
1:02:36
Просмотров 2,6 млн
Python Django REST API In 30 Minutes - Django Tutorial
30:42
Django REST Framework - Build an API from Scratch
40:39
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Просмотров 1,4 млн