Don't forget to check out my Complete Django course! dub.sh/NvGboTI
@malayparmar5043 жыл бұрын
Hey Dennis, recently in February I got a job as a Backend Python Developer and I really want to thank you for all the Django tutorials because I learnt Django from scratch from your videos... Thank you for all the knowledge ❤️
@DennisIvy3 жыл бұрын
Wow congratulations! Thanks for sharing that with me, it keeps me motivated :)
@malayparmar5043 жыл бұрын
@@DennisIvy Thank you very much
@Feronom3 жыл бұрын
Very good! When did you start learning?
@malayparmar5043 жыл бұрын
@@Feronom Dec 2020
@Feronom3 жыл бұрын
@@malayparmar504 and you already got a job! Wow I am both jealous and impressed. How did you get it? Just sending resume or?
@jonoisedev3 жыл бұрын
I like function based views also. I feel more in control :D
@faithademola47133 жыл бұрын
Same! I thought I was only one.
@mycode03 жыл бұрын
same
@akashjadhav50773 жыл бұрын
Same
@hadjermohabeddine76453 жыл бұрын
Same i feel more confortable even in my personal projects
@brahimboughanam16623 жыл бұрын
Yeah me to
@frankkiogora3 жыл бұрын
Hey Dennis, I have brushed up my django skills alot especially connecting postersql or MySQL with Aws and also using S3 to serve static files. You have also helped me alot to get rid of my imposter syndrome, I never realized I knew alot until I took some time to create some django projects . Thanks man and continue doing that awesome job and may God bless you + your fam
@vinifootz3 жыл бұрын
I've been programming in Python for 2 years now, I'm using Django in my Work, and it's great to see how you approach these kind of concepts, keep going bro !
@CodeWithTomi3 жыл бұрын
I use both function and class based views, and i don't use class based views unless i need to use it... i think sticking with function based views is preferable and understandable
@iosefespiritu6783 жыл бұрын
Hey Dennis! I just wanna thank you for making Django Tutorial videos. You're one of the reasons why I successfuly deployed a Web-based system in my work. Keep up the good work!
@geetcyberlab51083 жыл бұрын
Well for me, I have been using function based views back as 2016 until 2019 when I changed to CBV and I remember it took me like 3 serious months to understand how the CBV was structured
@DennisIvy3 жыл бұрын
I definitely enjoyed classed based views when I started using them. Took me a bit to understand them also.
@geetcyberlab51083 жыл бұрын
Sure... I have to go back and review my previous projects that i developed using FBV and changed them to CBV making my backend retrieve queries faster...
@Unicorn_rainbow163 жыл бұрын
This video is so helpful. I had this confusion everytime I code and you cleared it. Also I have started creating to-do app and now I m doing modifications in it like contact forms, login form . Also I'm using modelform , bootstraps for navigation. I'm blessed to have your channel. Keep up the good work and I hope that I will learn so many things from your channel and become a good programmer. Thanks a ton Dennis!!!!!!! Also waiting for more fully-fledged projects on your channel.
@diegoabdo25553 жыл бұрын
Every time I use CBV there is a feature that requires overriding methods and I spend like two hours trying to find the way and the code looks horrible. In FBV I always have to write more, but I understand things better and that can be helpful if some day I want to try out node or other framework of that type.
@emperorpalpatine78083 жыл бұрын
I started out watch your tutorials. After dozens of projects, I still prefer using function based views even for basic stuff except for things like search. I prefer having control over how my logic works as it feel more intuitive.
@cameroneverhart64433 жыл бұрын
As someone who is currently taking a coding bootcamp, this video is just....SOOOO right on the money. This was so helpful to me in keeping me sane. We learned function based views first and some "extra credit" was doing things in class based views and I got so lost and discouraged.
@oparesimon3 жыл бұрын
Please, continue to use function base views for the sake of some of us beginners. It makes learning your tutorials easy to understand and follow. Thanks.
@glaceondev41493 жыл бұрын
Tbh Function base views are pretty understandable and i love that And pretty easy to do stuffs! Its like the whole control is in your hand!
@LordFullStack3 жыл бұрын
Hi Dennis , Thanks for the ecommerce website tutorial . I made a online store for my village ! Which was 3rd build of same website because at first i was not feeling confident . But now i can make a production level django website and start my business ! Not a unique project but yeah i can start with it in my village ! And also due to your tutorials and inspiration i started freelancing and earning income 1000$ per month (₹70,000+ which is more than enough for me and my family ) ! Thanks for your efforts dennis !
@11yoyomama3 жыл бұрын
I learned class based as a beginner, and I can confirm it’s a lot harder to use. Now I’m glad I learned it, but for simple projects to learn Django, you’re right, function based is better.
@josecarlosramirezdelgado78283 жыл бұрын
I'm kinda beginner, I've used django for 3 months now, and I'm reading the doc, although it seems that class-based views is more complicated, it's more organized and makes your code DRY, but like everything, depends upon what is used for... I'm planning doing my yt channel, thanks Dennis, you're such an inspiration!
@jaumemontane33053 жыл бұрын
Just this weekend I was refeshing this concept of going from Models to Views to Templates and it just clicked to me! As it clicked, my thought is that CBV might work for basic things and if you a rush, but FBV are more flexible and easy to use, because they are more easy to understand. Thanks for the video! I will start soon your course on Udemy so I expect a lot of FBV i suppose! hehe
@CodeWithStein3 жыл бұрын
Very good video Dennis! I totally agree with you on this. The "magic" you get from using CBV can be hard to understand in the beginning.
@armaghan11963 жыл бұрын
I had this question for a long time, this cleared 2 questions of mine! Thanks a lot Dennis!
@thriftsimple5613 жыл бұрын
Would've like to see code examples of the differences and a brief explanation. Thanks for sharing though!
@helloquico3 жыл бұрын
it would have been nice..yes
@sabmus Жыл бұрын
thanks man! just the advice that I need
@jackieli1724 Жыл бұрын
Great Explanation!
@euriperez95863 жыл бұрын
Anyways thanks for everything Dennis, just bought your course at udemy to support you and encourage to everyone that have benefit from your free tutorials and can afford it to do so. Hope you keep doing fine !
@louisramirez9753 жыл бұрын
I appreciate your teaching style
@crowley56873 жыл бұрын
Yeah right. It's Good for beginner like me to understand it
@cursoderobotica3 жыл бұрын
hello Dennis! I really like class base views! as a beginner this make me the job easy! I know that using classes I don't have full control.. but I don't want to re-invent the wheel, if someone (way much better than me) has doing that job for me 😅 I will use it! (time is critical for me) thank you for your videos!! cheers
@kenafriq2 жыл бұрын
Hey dennis good piece of info, you obviously cant drive a car without legs, so basics are quite important
@AcademyOmen3 жыл бұрын
Thanks Dennis, I definitely agree🔥🔥
@chaitanyaasati3 жыл бұрын
Thank you for taking this question. 😇
@victormungai3 жыл бұрын
I think I will focus more on function-based views now. It is true that class-based views abstract a lot of important knowledge from the learner(such as myself) and so, going in manually and getting my hands dirty is a better way of understanding what's actually happening. That perspective is important indeed.
@faithademola47133 жыл бұрын
I use function based view as well. It feels like I'm the one in control. Thanks for the insight.
@lowkeygaming47163 жыл бұрын
Honestly I also enjoyed FBV more because the CBV seems to be too vague because it does a lot of stuff in the background however my previous work required the CBV that's why I was forced to learn it.
@parmanandchauhan61823 жыл бұрын
i have been working as python django fullstack web developer and thanks to @dennis ,I learned a lot from u
@freekeys3 жыл бұрын
Agree👍 me too confused that Mistry box at begging😂
@Ice-on7xs2 жыл бұрын
People who use both: *LAUGHS IN SUPERIORITY*
@billywang38293 жыл бұрын
The man is speaking straight facts
@adalaw31293 жыл бұрын
In that case, can we have a class-based views tutorial?
@abinabraham133 жыл бұрын
Can you make a video about rest api , which type of view we use and multiple serialiser and queryset
@Angryman183 жыл бұрын
Always function based views & also function based component for React
@TheSoftwareServices3 жыл бұрын
Yeah Dennis, CBV is like a Magic Mystery, FBV is more explicit , tq for video
@poornasaipilla1620 Жыл бұрын
Thank you Dennis providing a cool stuff for free of cost and learned so much from you ,.. and no one is showing how to render this data provided by DRF to templates , may be by using with class bassed generic views etc. is it not possbile ..or it is possible please make help me to find ou this ..
@nowyouknow22493 жыл бұрын
Yes I prefer fbv. It's the same in React, I prefer functional components
@jhoanmartinezsilva26093 жыл бұрын
Function based views are more customizable, classes based views are faster, I talk from my short experience off course, I use both, anyways, thanks to your channel I became a professional Django developer
@akashdamle37313 жыл бұрын
I usually use function based views when I don't know what I exactly wanna accomplish. I usually end up converting them into CBV in the refactor phase to keep everything clean
@__arid0__3 ай бұрын
I worked in fairly large companies and in government. CBV are the norms. Otherwise, your Pull/Merge request will be returned back.
@randheerkumargautam64332 жыл бұрын
How to handle image filed in function-based view to create user profile api with profile image
@dhruvilshah90983 жыл бұрын
Very helpful sir!, Sir now I think I am very good in Django I completed all your playlist, but now want to be good in Django Rest Framework, please make a playlist like Django for it. Seen many videos but still not able grasp very well
@ajaykryadav Жыл бұрын
Too good
@morp69383 жыл бұрын
But what about if you learn FBV and than you need to use some third-party-app that is build on CBV. Then it's realy complicated to figure out how to reuse it.
@mohammadabbaszadeh46032 жыл бұрын
Thanks for great videos. I'm watching almost all of your Django tutorials and am currently building a shopping list webapp, but I want to share my list with other users and I don't know how to do that. Can you maybe make a shopping list of webspp tutorials.
@jeanbarbosa93 жыл бұрын
Good point this one. I do prefer class based views, so I always try to adapt it by this way. I know that my question it's out of the topic, but what do you think about handle the context in a separated file, like a presenter (a class with many methods that handles the template data) instead of doing this into the view?
@Vesuka3 жыл бұрын
are class based views more powerful than function based views ??? (I'm talking about runtime)
@ap.7g1993 жыл бұрын
Hey Dennis, first of all thanks a lot for your great videos. Could you make a social media type project please?
@DennisIvy3 жыл бұрын
Working on one now :)
@siuu31553 жыл бұрын
Hey dennis, make some tutorials on react js for complete beginners please. ❤️
@saikatmukherjee80953 жыл бұрын
does function based views make the code slower ??? rather than class s based views?
@nrikeedev3 жыл бұрын
I don't see any reason to recommend function based views apart from when you are an absolute begginer. In my opinion, once you know a bit more of Django you should switch to CBV. In a class you can split your code into methods and you can write mixins.
@rajkumarr76223 жыл бұрын
I feel class based view is more organized and function based view is simple and has more control
@karanshrestha44323 жыл бұрын
Can you create Django Rest API + reactjs From the base Full tutorial
@naheliegend52222 жыл бұрын
I stick with function based views. I kinda feel them more.
@mamangcikal12553 жыл бұрын
what kind of notification have u use for django project such as ecommerce when customer check the product out?
@meqdaddev43413 жыл бұрын
Can't agree more...
@kirtan__prajapati18273 жыл бұрын
Nice
@bentsoft68222 жыл бұрын
Dennis said that you can do anything with both, yet in my first django project I wanted to make the app automatically log in the user after creating an account, and I only found a way to do that with class based views. How could I do it with function based views?
@DennisIvy2 жыл бұрын
Call the login function and redirect the user. I do this in my Django 2021 course, you can look at the source code if you didn’t purchase the course
@unperrier59983 жыл бұрын
I realized by listening that experienced programmers will dive head first into the documenation until they figure things out and get a good overview of how they will do what they want to do.
@manzourabdalla22793 жыл бұрын
Hey Dennis , You are the one who make me begin learning django and i liked it almost , so today i was planning to make a project and i got this error "Object of type QuerySet is not JSON serializable" can you help with this , Thanks :)
@patrickknows22963 жыл бұрын
Can I combine both in a project? But I need to know, is there anything that CBV can do which FBV can't? Honestly, I am more comfortable with FBV because I can understand what's going on because it is more explicit
@gabrielaraya32423 жыл бұрын
Hi Dennis , Is it ok to use both views in the same proyect?
@DennisIvy3 жыл бұрын
Yes of course.
@atharvashetty97303 жыл бұрын
Django rest framework is little bit confusing. If you make a course on it many people including me would like to purchase it
@jj-big-slay-yo3 жыл бұрын
cbv-s are not that difficult. it also helps to read django's code. not for complete beginners though. there is a simpler take on them called django-vanilla-views.
@ajdemoedable3 жыл бұрын
Is it very hard to change an app from function based to class based views later on or not recommended? I mean a small sized app.
@creativetech84713 жыл бұрын
Does not function Based Views make you repeat code (DRY ?)
@unuefeejovwoke66092 жыл бұрын
LightWeightsProjects = "function based views" HeavyWeightsProjects = " class based views "
@Rahul-gs7vc3 жыл бұрын
I like function based view.... But my lead prefer classbased view....
@hakimled43003 жыл бұрын
Me too like FBV to CBV
@pinakastra3 жыл бұрын
Hey bruv thanks for explaining as I always prefer function based views. I'm do need to ask for your help as I need to made a custom user model so that I can have certain extra fields, however I need to remove the password field from required and use otp instead. I'm unable to remove the password field so I initialized it. Anyways if there is some way to contact and ask you please tell me.
@BehruzbekOtayev3 жыл бұрын
Dennis, what do you say to taking Linkedin Python and Django assessment tests? Are you up for it? Would you be willing to share your experience with us? Thanks, Everyone.
@taowme3 жыл бұрын
40 K - sounds good. I had one worth $1,500. I should have sold it.
@MagnusAnand3 жыл бұрын
Function based views: for amateurs and the experienced Class based views: for the experienced
@DennisIvy3 жыл бұрын
🤣
@DennisIvy3 жыл бұрын
STRONGLY disagree
@MagnusAnand3 жыл бұрын
I wonder which of the two statements you disagree with?
@_alexlazar_3 жыл бұрын
Meanwhile I’m here, just built a membership web app with vanilla PHP. I feel a bit inadequate 😂
@rediyusputra83333 жыл бұрын
Hi dennis..!
@aditya-bl5xh3 жыл бұрын
I want to make a website that has a feature like facebook group, where there is a group admin and has following, bro can you please help me, I commented on other KZbin channels too, but nobody gave a reply, I hope you'll reply
@juneddavada3 жыл бұрын
Hey Dennis , I am following you from 2019 and i have learned Django from your playlist . And i have create a many project and i have hosted many projects also on Heroku Server . But now i get stuck at "Django-import-export" module . And i have to create a script which will take backup all the models data in excel from the models in database. So please help me to get out from this..
@rajeshsingh55042 жыл бұрын
I think for beginners class based view is better
@ardabili3 жыл бұрын
on class based view i didn't understand how to make multiple model in one views.
@mehranj733 жыл бұрын
Is the code of your Django and React course public?
@No_Underscore Жыл бұрын
well, just mix between FBV and CBV in the same file. lol
@salimsuleiman79843 жыл бұрын
class based views only make your code look short period
@LIMLIMLIM1113 жыл бұрын
We only remember things that we can reason with. If class based view remains black box, chances are, they wont stay in our brains for long.
@taowme3 жыл бұрын
I want to learn Django.
@DennisIvy3 жыл бұрын
You've come to the right place ;)
@ShaidaMuhammad3 жыл бұрын
You look beautiful.
@serious6037 Жыл бұрын
Sorry to class based view fans, but class based views are garbage if you're not dealing with querys and databases. when it comes to dynamic(live) data which you dont need to save, i prefer function based views.
@DennisIvy Жыл бұрын
You’re definitely wrong there lol there is nothing that makes making queries with class based views difficult.
@younesaitmha3 жыл бұрын
First view first comment
@MuhammadAdnan-vs5cx3 жыл бұрын
Function based view is better than class based your opinion
@DennisIvy3 жыл бұрын
I don’t think they are better, I just recommend to start with them.
@MuhammadAdnan-vs5cx3 жыл бұрын
@@DennisIvywhich you use FBV or CBV?
@daytraderph3 жыл бұрын
40k$ ?
@ashikmehermobin99263 жыл бұрын
Vote For Function-Based Views
@mychromebook99353 жыл бұрын
Function based views = $$$ + get stuff done + productivity + know how it works. Class based views = just programmers stroking their ego + no productivity + lost time.
@crazycat29693 жыл бұрын
sup man
@miryamelliye3 жыл бұрын
Dennis please I contacted you😭
@DennisIvy3 жыл бұрын
If you emailed me I'm not sure when I can get to it, I've been flooded with emails and projects so I'm several weeks behind on checking all of that, sorry. If its for technical support I don't have the luxury of helping people one on one anymore :/ Hope you understand..
@miryamelliye3 жыл бұрын
@@DennisIvy No problem!!! Thank you Anyways!! And keep up the good work👏🏼