Python OOP for Django Class Based Views Explained - Beginners guide to OOP and using Django Classes

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024

ความคิดเห็น • 77

  • @xq_nemesis
    @xq_nemesis 3 ปีที่แล้ว +9

    Hands down the best Python video’s on TH-cam. Thank you for that!

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +2

      That really is a big statement! Thank you

  • @rangabharath4253
    @rangabharath4253 3 ปีที่แล้ว +4

    I saw your video link on django Facebook group. They recommended your channel. Congratulations 🎊🎉👏

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +1

      That's nice of them! 👍

  • @rexsybimatrimawahyu3292
    @rexsybimatrimawahyu3292 หลายเดือนก่อน

    You know its a tough topic when you find only a few channel that talks about django CBV, thanks for the knowledge sharing

  • @anthonyvetrenko6519
    @anthonyvetrenko6519 3 ปีที่แล้ว +1

    Show me that genius who are doing these videos. It's amazing!!

  • @cyrusjomo1199
    @cyrusjomo1199 3 ปีที่แล้ว +3

    finding this channel feels like discovering gold

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      Many others have said this - thank you

  • @zushi4570
    @zushi4570 3 ปีที่แล้ว +2

    Liked before watching

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      Thank you! Hope you still like it after watching it!

  • @saisandeeppalla7713
    @saisandeeppalla7713 3 ปีที่แล้ว

    Best content and best lectures I have seen on TH-cam on Django/Pyhton

  • @SaifUlislam-zq2qn
    @SaifUlislam-zq2qn ปีที่แล้ว

    The best and ultimate oop python Django classes explanation. Hats off to you

  • @Chocolanay
    @Chocolanay 3 ปีที่แล้ว +2

    Great timing! Just what I need. Thanks!

  • @bomaanjang6580
    @bomaanjang6580 2 ปีที่แล้ว +1

    Thank you very much, this make my OOP is more solid than before

  • @rudigerheicappell572
    @rudigerheicappell572 ปีที่แล้ว

    Very helpful indeed; specifically I liked the examples which ver sufficiently easy to understand the context behind. Thank you, great job!

  • @saugatrajbhandari4247
    @saugatrajbhandari4247 3 ปีที่แล้ว +2

    just got what i needed. love from nepal

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +2

      Thank you kindly! I genuinely take real joy knowing that this knowledge is reaching so far - good luck to you with your developments 👍

  • @alpstinger5083
    @alpstinger5083 3 ปีที่แล้ว

    Really really helpful. The super explanation was really good. The last part, where u gave an example of over riding both with and without super was so so helpful for making things clear. Thanks a lot for this. Keep it up man!

  • @paborlouise319
    @paborlouise319 3 ปีที่แล้ว +2

    Great... Super() 👍🏻

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +1

      Nice joke there 😂 👍

  • @yousefiazkco1440
    @yousefiazkco1440 ปีที่แล้ว

    Thank you, boss...you are amazing master

  • @user-te1de5kl1q
    @user-te1de5kl1q ปีที่แล้ว

    Thank you very much for such good content

  • @Rob-cq1nf
    @Rob-cq1nf 3 ปีที่แล้ว +2

    Thank you so much! Really nice django content and very healpful!

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +1

      Thanks Rob, more coming soon!

  • @rangabharath4253
    @rangabharath4253 3 ปีที่แล้ว +1

    Awesome as always 👍😀

  • @codedjango
    @codedjango 3 ปีที่แล้ว +1

    Awesome 👍..as always 🔥🔥🔥

  • @nihaanthreddy6206
    @nihaanthreddy6206 3 ปีที่แล้ว

    sir u should actually have 1.1 million subs sir

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      Thanks - not sure there are 1.1 million people who would want to watch this - I will do my best to find them 👍

  • @danielaceros5723
    @danielaceros5723 3 ปีที่แล้ว +1

    Amazing one

  • @carlosvilla6120
    @carlosvilla6120 2 ปีที่แล้ว +1

    I love you sir.

  • @samuelebonini8004
    @samuelebonini8004 3 ปีที่แล้ว +1

    Just wanted to bring a typo in the description to your attention: in the list of timestamps, you probably didn't mean to say "26:90" ;) I haven't watched the video yet but I trust that it's gonna be great!

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +1

      I can ensure you that timestamps have been made without breaking Covid restrictions 😁

    • @samuelebonini8004
      @samuelebonini8004 3 ปีที่แล้ว

      @@veryacademy I'm not sure I get the joke haha; either way, I wanted to ask you: do you do anything like viewers' projects reviews or something? I just wrapped up working on something I'm really proud of and involved with and I'd love to get some feedback, if that's something you're doing

  • @ikechukwuezechimere
    @ikechukwuezechimere 3 ปีที่แล้ว +1

    please Sir i have a question
    I want to get my individual categories to display on a page, for example i have categories of : sport, Technology and Health, when the sport page is clicked on let post with that SPORT category display on the sport page and so unto others. Please how an i be able to do it, a tip may do . Thanks
    Am using class based Views

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      Have a look in the tutorial I made th-cam.com/video/S9-Bt1JgRjQ/w-d-xo.html
      Hey Ikechukwu, you need to create a url for categories
      categories/ for example
      so when you goto asdasd.com/categories/sport
      here we are capturing the word sport - this can be used in the view
      **kwargs - the word sport is saved in kwargs reference by category
      access this in your view kwargs['category'] and use that to make your database request - remember category is holding the work sport
      modelname.objects.filter(category=kwargs['sport'])
      -- with a class - look for a generic class that does this for you automatically

  • @afaf6478
    @afaf6478 3 ปีที่แล้ว +1

    Good video, really good explanation of inheritance. I am still confused about super(), but I will just read about it on my own. Still confused about "accessing blocks of code with super" concept.I was told that if i'm not sure to do:
    class MyClass(ParentClass)
    def __init__(self, parent):
    ParentClass.__init__(self)
    How good is this suggestion?

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      Really sorry - I was going to add some more robust examples but tried to keep it as light as possible. I would suggest just using super() 👍😁

    • @afaf6478
      @afaf6478 3 ปีที่แล้ว

      @@veryacademy What's the point of using super if those methods/attr are already accessible due to inheritance? I mostly saw super used to access the __init__ method of the parent class

    • @mohammadrastad4147
      @mohammadrastad4147 2 ปีที่แล้ว

      @@afaf6478 it depends on inheritance if you have multiple inheritance it is better to use super() beacuse of method resolution order

  • @ce.joseph
    @ce.joseph ปีที่แล้ว

    Can I create 2 different models as class views that inherit from generic Listview and inherit then in a third view say home view, so that I can get a queryset of both models in the single class based view?

  • @nix7705
    @nix7705 3 ปีที่แล้ว

    This one is nice!

  • @ramiroramos8949
    @ramiroramos8949 3 ปีที่แล้ว +1

    Does the subscription offer other in-depth django tutorials?

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +2

      Hi Ramiro, I had lots of people say that they found the tutorials valuable and wanted to show there support financially. We have a members discord channel where I am 99.9% of the time I am online - which is most days. I answer some questions and try and get feedback. I am not in a position yet to offer members only tutorial - everything will always just end up on the channel anyhow. Maybe over time the channel will bring in enough for me to reduce my normal workload and so can concentrate on making more tutorials - there certainly is much more to do!

    • @ramiroramos8949
      @ramiroramos8949 3 ปีที่แล้ว +1

      @@veryacademy Thanks, I love this channel!!!

  • @KevinTempelx
    @KevinTempelx 3 ปีที่แล้ว +1

    Thank you!

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      You're welcome!

    • @KevinTempelx
      @KevinTempelx 3 ปีที่แล้ว

      @@veryacademy Oh by the way since you asked at the beginning if there was any advice for other things I also wanted to possibly suggest for people watching that it would be easier to differentiate the files and folders if you added a file icon theme for them and tree indenting in settings. In addition you could uncheck the "Compact folders" setting in the vscode settings so that nested folders are visually presented in nested format. Both would help with user readability. Thanks again I just finished the video it was very helpful!

  • @rajughorai3909
    @rajughorai3909 3 ปีที่แล้ว +1

    completed the video

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      Ta da! Hope it was worth the wait.

  • @mickaelrichard7255
    @mickaelrichard7255 2 ปีที่แล้ว

    I have a question maybe a stupid one, but what is the purpose of using super() in a child class if we can simply use the parent methods to override their returned value?

    • @veryacademy
      @veryacademy  2 ปีที่แล้ว

      super() function lets you inherit "methods" from a parent class

  • @bhuwanshahi9296
    @bhuwanshahi9296 3 ปีที่แล้ว

    great

  • @atabarzegar4338
    @atabarzegar4338 3 ปีที่แล้ว

    the main quesyion is that " is super () overwriting or overriding the methods??? "
    can any one help ?

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      It doesn’t change the existing code. Overriding.

  • @shawonhossain519
    @shawonhossain519 3 ปีที่แล้ว +1

    Can you please make a tutorial on django guardian ??
    it’s a crying need !!

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +3

      Noted Shawon - thank you for bringing this to my attention. I am dreaming up a few tutorials that focuses on authentication/permission etc. Thank you!

  • @AdikJANN
    @AdikJANN 3 ปีที่แล้ว +1

    FIRST

    • @abualasif
      @abualasif 3 ปีที่แล้ว

      Are you sure

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      The award goes to you! 👍

  • @SajjadAliRajpoot
    @SajjadAliRajpoot 3 ปีที่แล้ว

    ** CORRECTION ** @27:57 __init__ is a constructor and you are calling it an initialization method!!

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +1

      ** THANK YOU ** apologies, I meant to say initializer method!!! Let’s keep constructors in the building site

  • @yoip1234
    @yoip1234 7 หลายเดือนก่อน +1

    I think you sometimes stray away from what you are talking. Like you typed "sound = 'woof'" for the Dog class, but then you never mention what that was for? A listener like me gets entangled with that and waits for some kind of explanation. The examples you give are sometimes not very coherent with the topic and are confusing.

    • @veryacademy
      @veryacademy  7 หลายเดือนก่อน

      Thank you for the feedback. Do you think it is time to remove this tutorial?

    • @yoip1234
      @yoip1234 5 หลายเดือนก่อน

      @@veryacademy No, you don't have to remove the tutorial. A lot of people like it and are benefitting from it. I just wanted to bring to your attention some issues I thought could be improved in future tutorials.

  • @AuthenticPakistaniReviews
    @AuthenticPakistaniReviews 3 ปีที่แล้ว +1

  • @serious6037
    @serious6037 ปีที่แล้ว

    Ridiculous that simple python oop can be done so hardly in django. I mean yea sure, it makes sense but still. BTW thank you for clearing this up for me.