Easily Convert Django Function Based Views To Class Based Views

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

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

  • @DennisIvy
    @DennisIvy  5 หลายเดือนก่อน +2

    Don't forget to check out my Complete Django course: dub.sh/fveSpaB

  • @pythoniste
    @pythoniste 2 ปีที่แล้ว +4

    Wake up babe! Dennis dropped a new Django video let's goooo

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

    Concise and to the point for starting with CBV. Thanks for the video 🙂

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

    Back to back videos on Django on this channel from the last couple of days............simply amazzzzing :)

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

    enjoy all your stuff dennis. hopefully i'll be a dev soon enough!

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

    great video. i am using cbv from the beginning, it's clean and easy. you just need a little bit focus for using CBV. prepare a sample code for class base view with having get, post, get_queryset and context. copy that code modify it according to your need. this thing can be easily done in Generics View class.

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

      Personally, I hate CBV and most developers I know hate it as well, why? because it is hard to troubleshoot errors. I prefer function based views it gives better control of the underlying system.

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

      @@abbysands9510 FBV is mess for me to review code. if you know how to use class base views properly. it gives more functionality and stability then FBV.

  • @Noritoshi-r8m
    @Noritoshi-r8m 2 ปีที่แล้ว

    Oh just in time, i was going to learn Class based views this week. Ty sir!!

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

    im a fan of your tutorials

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

    damn! Never knew it was so easy to convert from FBV to CBV. Would love to watch a detailed video about CBV aswell!

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

    greate video. if i had to work with django, i'll use mostly function based view because i think class based views are way too verbose in my opinion and not to forget that with all the magic django does under the scene, good luck when trying to do custom operations. I would only use class based views when dealing with forms. Instead of creating two separate functions or create a single function and check for the method (get or post) you can encapsulate all the code in a single class and have something cleaner.

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

    Thanks 👍 brother ... hope to see daily videos from you

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

    Thank you so much Dennis for this quick tutorial. 🙏💙

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

    Too good explanation

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

    thanks for sharing Dennis 🔥

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

    great video as always dennis!

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

    Damn I love Django. I miss it.

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

    felt in love with CBV as a beginner and now find it hard to use FBV lol funny. though CBV are complex sometimes

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

    Hello Dennis, Very easy !!!!!!!!!!! Could you perhaps combine Django and htmx in your upcoming videos?

  • @user-gf3hf5ri8b
    @user-gf3hf5ri8b ปีที่แล้ว +1

    Hello, should I enroll in Dennis's courses on Udemy in 2023? Will I face any issues the courses being updated long ago?

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

    did Django has a way to render without refreshing page like ajax

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

    Is function based views better for a bigger project??

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

      I think class based views good for bigger projects

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

      In my opinion, class based views is better for bigger projects, because you can reuse parts of your code by inheriting multiple similar view classes from a single class in your core app.

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

    Shout out Dennis. Thank you for the content... its very helpful. Just a quick request. Please add some more calculation, addition / Subtract from the frontend / backend on django. Similar to your Ecommence content, but math focused 🙂.

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

    CBV's are pretty awesome

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

    hello Dennis👋, its always nice watching your tutorials. can you do a tutorial on converting your e-commerce app to a rest api?

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

    is it better to use class based views more than function based?

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

    Nice and easy 🙏

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

    In your studyBud video, you used if request.method == 'POST' throughout the video, is there any difference between the 'POST' and GET you used in this new video?
    Or rather,what is the difference between GET request and POST request?

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

    Too good

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

    Hi, when should I use django signals? I watched one of your videos about signals and I was thought that you could make the same thing just by adding a profile for a user in the registration page that takes 2 lines of code. Pls answer. Thanks.

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

    My hero ❤

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

    Name the font which you are using in Vscode please 🙏 🙏 🙏

  • @MOI-su4lx
    @MOI-su4lx 2 ปีที่แล้ว +1

    Dennis can you do a tutorial based on login and logout and authentication on rest framework, it will be very helpful...

  • @KunalVerma-gi3pq
    @KunalVerma-gi3pq ปีที่แล้ว +1

    theme?

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

    *where have you been all my life* 🎵🎵

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

      🤣

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

    why you are not use delete method of View class for delete records?

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

    Hi Dennis! I just want to ask if HTMX is worth to study ? If yes, could you make a tutorial on it with Django. Thanks!

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

      learn JS more powerful and opens your doorway to other framework like react and node.

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

    Hi Dennis. You don't respond to questions on your Udemy course. Why?

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

    Sir Can you show me how to connect django and mongodb...

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

      Keep in mind that mongo db won’t work with Djangos ORM. If you want to connect it then you will have to do it manually and will lose a lot of Djangos features.

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

    thanks man.

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

    What is vscode theme?

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

    Now make a new video about making it a bit more complicated. Slowly slowly make it a series

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

    React: How to convert class-based components to function-based components
    Django: How to convert function-based views to class-based views

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

    First comment 👌

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

    Thanks

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

    Name theme?

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

    ❤❤❤

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

    👍

  • @noorzaibchohan1200
    @noorzaibchohan1200 9 หลายเดือนก่อน +1

    Dennis and Django are the same thing.

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

    Grate