Why I Use Django Function Based Views

  Рет қаралды 27,809

Dennis Ivy

Dennis Ivy

Күн бұрын

Пікірлер: 138
@DennisIvy
@DennisIvy Ай бұрын
Don't forget to check out my Complete Django course! dub.sh/NvGboTI
@malayparmar504
@malayparmar504 3 жыл бұрын
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 ❤️
@DennisIvy
@DennisIvy 3 жыл бұрын
Wow congratulations! Thanks for sharing that with me, it keeps me motivated :)
@malayparmar504
@malayparmar504 3 жыл бұрын
@@DennisIvy Thank you very much
@Feronom
@Feronom 3 жыл бұрын
Very good! When did you start learning?
@malayparmar504
@malayparmar504 3 жыл бұрын
@@Feronom Dec 2020
@Feronom
@Feronom 3 жыл бұрын
@@malayparmar504 and you already got a job! Wow I am both jealous and impressed. How did you get it? Just sending resume or?
@jonoisedev
@jonoisedev 3 жыл бұрын
I like function based views also. I feel more in control :D
@faithademola4713
@faithademola4713 3 жыл бұрын
Same! I thought I was only one.
@mycode0
@mycode0 3 жыл бұрын
same
@akashjadhav5077
@akashjadhav5077 3 жыл бұрын
Same
@hadjermohabeddine7645
@hadjermohabeddine7645 3 жыл бұрын
Same i feel more confortable even in my personal projects
@brahimboughanam1662
@brahimboughanam1662 3 жыл бұрын
Yeah me to
@frankkiogora
@frankkiogora 3 жыл бұрын
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
@vinifootz
@vinifootz 3 жыл бұрын
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 !
@CodeWithTomi
@CodeWithTomi 3 жыл бұрын
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
@iosefespiritu678
@iosefespiritu678 3 жыл бұрын
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!
@geetcyberlab5108
@geetcyberlab5108 3 жыл бұрын
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
@DennisIvy
@DennisIvy 3 жыл бұрын
I definitely enjoyed classed based views when I started using them. Took me a bit to understand them also.
@geetcyberlab5108
@geetcyberlab5108 3 жыл бұрын
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_rainbow16
@Unicorn_rainbow16 3 жыл бұрын
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.
@diegoabdo2555
@diegoabdo2555 3 жыл бұрын
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.
@emperorpalpatine7808
@emperorpalpatine7808 3 жыл бұрын
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.
@cameroneverhart6443
@cameroneverhart6443 3 жыл бұрын
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.
@oparesimon
@oparesimon 3 жыл бұрын
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.
@glaceondev4149
@glaceondev4149 3 жыл бұрын
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!
@LordFullStack
@LordFullStack 3 жыл бұрын
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 !
@11yoyomama
@11yoyomama 3 жыл бұрын
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.
@josecarlosramirezdelgado7828
@josecarlosramirezdelgado7828 3 жыл бұрын
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!
@jaumemontane3305
@jaumemontane3305 3 жыл бұрын
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
@CodeWithStein
@CodeWithStein 3 жыл бұрын
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.
@armaghan1196
@armaghan1196 3 жыл бұрын
I had this question for a long time, this cleared 2 questions of mine! Thanks a lot Dennis!
@thriftsimple561
@thriftsimple561 3 жыл бұрын
Would've like to see code examples of the differences and a brief explanation. Thanks for sharing though!
@helloquico
@helloquico 3 жыл бұрын
it would have been nice..yes
@sabmus
@sabmus Жыл бұрын
thanks man! just the advice that I need
@jackieli1724
@jackieli1724 Жыл бұрын
Great Explanation!
@euriperez9586
@euriperez9586 3 жыл бұрын
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 !
@louisramirez975
@louisramirez975 3 жыл бұрын
I appreciate your teaching style
@crowley5687
@crowley5687 3 жыл бұрын
Yeah right. It's Good for beginner like me to understand it
@cursoderobotica
@cursoderobotica 3 жыл бұрын
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
@kenafriq
@kenafriq 2 жыл бұрын
Hey dennis good piece of info, you obviously cant drive a car without legs, so basics are quite important
@AcademyOmen
@AcademyOmen 3 жыл бұрын
Thanks Dennis, I definitely agree🔥🔥
@chaitanyaasati
@chaitanyaasati 3 жыл бұрын
Thank you for taking this question. 😇
@victormungai
@victormungai 3 жыл бұрын
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.
@faithademola4713
@faithademola4713 3 жыл бұрын
I use function based view as well. It feels like I'm the one in control. Thanks for the insight.
@lowkeygaming4716
@lowkeygaming4716 3 жыл бұрын
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.
@parmanandchauhan6182
@parmanandchauhan6182 3 жыл бұрын
i have been working as python django fullstack web developer and thanks to @dennis ,I learned a lot from u
@freekeys
@freekeys 3 жыл бұрын
Agree👍 me too confused that Mistry box at begging😂
@Ice-on7xs
@Ice-on7xs 2 жыл бұрын
People who use both: *LAUGHS IN SUPERIORITY*
@billywang3829
@billywang3829 3 жыл бұрын
The man is speaking straight facts
@adalaw3129
@adalaw3129 3 жыл бұрын
In that case, can we have a class-based views tutorial?
@abinabraham13
@abinabraham13 3 жыл бұрын
Can you make a video about rest api , which type of view we use and multiple serialiser and queryset
@Angryman18
@Angryman18 3 жыл бұрын
Always function based views & also function based component for React
@TheSoftwareServices
@TheSoftwareServices 3 жыл бұрын
Yeah Dennis, CBV is like a Magic Mystery, FBV is more explicit , tq for video
@poornasaipilla1620
@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 ..
@nowyouknow2249
@nowyouknow2249 3 жыл бұрын
Yes I prefer fbv. It's the same in React, I prefer functional components
@jhoanmartinezsilva2609
@jhoanmartinezsilva2609 3 жыл бұрын
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
@akashdamle3731
@akashdamle3731 3 жыл бұрын
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__
@__arid0__ 3 ай бұрын
I worked in fairly large companies and in government. CBV are the norms. Otherwise, your Pull/Merge request will be returned back.
@randheerkumargautam6433
@randheerkumargautam6433 2 жыл бұрын
How to handle image filed in function-based view to create user profile api with profile image
@dhruvilshah9098
@dhruvilshah9098 3 жыл бұрын
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
@ajaykryadav Жыл бұрын
Too good
@morp6938
@morp6938 3 жыл бұрын
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.
@mohammadabbaszadeh4603
@mohammadabbaszadeh4603 2 жыл бұрын
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.
@jeanbarbosa9
@jeanbarbosa9 3 жыл бұрын
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?
@Vesuka
@Vesuka 3 жыл бұрын
are class based views more powerful than function based views ??? (I'm talking about runtime)
@ap.7g199
@ap.7g199 3 жыл бұрын
Hey Dennis, first of all thanks a lot for your great videos. Could you make a social media type project please?
@DennisIvy
@DennisIvy 3 жыл бұрын
Working on one now :)
@siuu3155
@siuu3155 3 жыл бұрын
Hey dennis, make some tutorials on react js for complete beginners please. ❤️
@saikatmukherjee8095
@saikatmukherjee8095 3 жыл бұрын
does function based views make the code slower ??? rather than class s based views?
@nrikeedev
@nrikeedev 3 жыл бұрын
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.
@rajkumarr7622
@rajkumarr7622 3 жыл бұрын
I feel class based view is more organized and function based view is simple and has more control
@karanshrestha4432
@karanshrestha4432 3 жыл бұрын
Can you create Django Rest API + reactjs From the base Full tutorial
@naheliegend5222
@naheliegend5222 2 жыл бұрын
I stick with function based views. I kinda feel them more.
@mamangcikal1255
@mamangcikal1255 3 жыл бұрын
what kind of notification have u use for django project such as ecommerce when customer check the product out?
@meqdaddev4341
@meqdaddev4341 3 жыл бұрын
Can't agree more...
@kirtan__prajapati1827
@kirtan__prajapati1827 3 жыл бұрын
Nice
@bentsoft6822
@bentsoft6822 2 жыл бұрын
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?
@DennisIvy
@DennisIvy 2 жыл бұрын
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
@unperrier5998
@unperrier5998 3 жыл бұрын
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.
@manzourabdalla2279
@manzourabdalla2279 3 жыл бұрын
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 :)
@patrickknows2296
@patrickknows2296 3 жыл бұрын
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
@gabrielaraya3242
@gabrielaraya3242 3 жыл бұрын
Hi Dennis , Is it ok to use both views in the same proyect?
@DennisIvy
@DennisIvy 3 жыл бұрын
Yes of course.
@atharvashetty9730
@atharvashetty9730 3 жыл бұрын
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-yo
@jj-big-slay-yo 3 жыл бұрын
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.
@ajdemoedable
@ajdemoedable 3 жыл бұрын
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.
@creativetech8471
@creativetech8471 3 жыл бұрын
Does not function Based Views make you repeat code (DRY ?)
@unuefeejovwoke6609
@unuefeejovwoke6609 2 жыл бұрын
LightWeightsProjects = "function based views" HeavyWeightsProjects = " class based views "
@Rahul-gs7vc
@Rahul-gs7vc 3 жыл бұрын
I like function based view.... But my lead prefer classbased view....
@hakimled4300
@hakimled4300 3 жыл бұрын
Me too like FBV to CBV
@pinakastra
@pinakastra 3 жыл бұрын
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.
@BehruzbekOtayev
@BehruzbekOtayev 3 жыл бұрын
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.
@taowme
@taowme 3 жыл бұрын
40 K - sounds good. I had one worth $1,500. I should have sold it.
@MagnusAnand
@MagnusAnand 3 жыл бұрын
Function based views: for amateurs and the experienced Class based views: for the experienced
@DennisIvy
@DennisIvy 3 жыл бұрын
🤣
@DennisIvy
@DennisIvy 3 жыл бұрын
STRONGLY disagree
@MagnusAnand
@MagnusAnand 3 жыл бұрын
I wonder which of the two statements you disagree with?
@_alexlazar_
@_alexlazar_ 3 жыл бұрын
Meanwhile I’m here, just built a membership web app with vanilla PHP. I feel a bit inadequate 😂
@rediyusputra8333
@rediyusputra8333 3 жыл бұрын
Hi dennis..!
@aditya-bl5xh
@aditya-bl5xh 3 жыл бұрын
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
@juneddavada
@juneddavada 3 жыл бұрын
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..
@rajeshsingh5504
@rajeshsingh5504 2 жыл бұрын
I think for beginners class based view is better
@ardabili
@ardabili 3 жыл бұрын
on class based view i didn't understand how to make multiple model in one views.
@mehranj73
@mehranj73 3 жыл бұрын
Is the code of your Django and React course public?
@No_Underscore
@No_Underscore Жыл бұрын
well, just mix between FBV and CBV in the same file. lol
@salimsuleiman7984
@salimsuleiman7984 3 жыл бұрын
class based views only make your code look short period
@LIMLIMLIM111
@LIMLIMLIM111 3 жыл бұрын
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.
@taowme
@taowme 3 жыл бұрын
I want to learn Django.
@DennisIvy
@DennisIvy 3 жыл бұрын
You've come to the right place ;)
@ShaidaMuhammad
@ShaidaMuhammad 3 жыл бұрын
You look beautiful.
@serious6037
@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
@DennisIvy Жыл бұрын
You’re definitely wrong there lol there is nothing that makes making queries with class based views difficult.
@younesaitmha
@younesaitmha 3 жыл бұрын
First view first comment
@MuhammadAdnan-vs5cx
@MuhammadAdnan-vs5cx 3 жыл бұрын
Function based view is better than class based your opinion
@DennisIvy
@DennisIvy 3 жыл бұрын
I don’t think they are better, I just recommend to start with them.
@MuhammadAdnan-vs5cx
@MuhammadAdnan-vs5cx 3 жыл бұрын
@@DennisIvywhich you use FBV or CBV?
@daytraderph
@daytraderph 3 жыл бұрын
40k$ ?
@ashikmehermobin9926
@ashikmehermobin9926 3 жыл бұрын
Vote For Function-Based Views
@mychromebook9935
@mychromebook9935 3 жыл бұрын
Function based views = $$$ + get stuff done + productivity + know how it works. Class based views = just programmers stroking their ego + no productivity + lost time.
@crazycat2969
@crazycat2969 3 жыл бұрын
sup man
@miryamelliye
@miryamelliye 3 жыл бұрын
Dennis please I contacted you😭
@DennisIvy
@DennisIvy 3 жыл бұрын
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..
@miryamelliye
@miryamelliye 3 жыл бұрын
@@DennisIvy No problem!!! Thank you Anyways!! And keep up the good work👏🏼
What are Django class based views & should you use them?
36:19
Dennis Ivy
Рет қаралды 81 М.
Easily Convert Django Function Based Views To Class Based Views
11:58
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 71 МЛН
Men Vs Women Survive The Wilderness For $500,000
31:48
MrBeast
Рет қаралды 97 МЛН
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 53 МЛН
Je peux le faire
00:13
Daniil le Russe
Рет қаралды 21 МЛН
Python Django Explained In 8 Minutes
8:11
Dennis Ivy
Рет қаралды 289 М.
Django Interview Questions (Junior Developer)
30:26
Dennis Ivy
Рет қаралды 124 М.
Why & When I Use React JS
9:02
Dennis Ivy
Рет қаралды 109 М.
Django Skills Roadmap To Getting A Job
17:31
Dennis Ivy
Рет қаралды 68 М.
I Paid Bassists to Play an IMPOSSIBLE Bassline...
13:16
Davie504
Рет қаралды 17 МЛН
Time to Leave Python Flask ...  then WHAT?
12:51
Stefan Mischook
Рет қаралды 46 М.
Django Rest Framework | Serializers & CRUD
22:40
Dennis Ivy
Рет қаралды 386 М.
Paying People To Create $5 Websites On Fiverr
15:15
developedbyed
Рет қаралды 1,4 МЛН
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 71 МЛН