CREATE, READ, UPDATE AND DELETE EXPENSES. Django Project Tutorial [17]

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

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

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

    An amazing series, so far so good. Just so, remember to look at all edge cases especially in this CRUD section. test accordingly. His is to teach, ours is to learn. Thanks Cryce.

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

    Great tutorials. I am going to finish the series!!!

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

    Thanks for this amazing tutorial. Your contents are unique and very helpful...

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

    Thank you so much! I failed to express my appreciation to you. If you have courses on Udemy or other websites, I will definitely purchase that!

  • @thioubouseck1610
    @thioubouseck1610 4 ปีที่แล้ว

    Many thanks man, well done

  • @sherukhan
    @sherukhan 4 ปีที่แล้ว

    U r amazing ❤️❤️. Thanx a lot!!

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

    Hi Semy Colon, This series is amazing.! really enjoying and learning a lot.!
    while trying this section I am getting an error while using objects.create
    error: subquery must return only one column
    can you help.?

    • @crycetruly
      @crycetruly  4 ปีที่แล้ว

      ooh sorry, could you share with me your code on GitHub, or screenshot?

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

      @@crycetruly Thank you for prompt reply. I will share the same on github.

    • @HenilMehta
      @HenilMehta 4 ปีที่แล้ว

      @@crycetruly went through the code again and found the issue. Now, its sorted. Thank you.!

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

      @@HenilMehta kudos!

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

    Please do not use float when dealing with currency fields, you are going to get all sort of strange issues, use decimal instead.

  • @techsupport-24-7
    @techsupport-24-7 3 ปีที่แล้ว

    please help i got this error when am trying to login with the new user account => DoesNotExist at /
    UserPreferences matching query does not exist.

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

      Have u got solution for this error? Because i m facing the same issue.

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

      instead of using .get, try get_object_or_404

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

      @@crycetruly it's not working... giving attribute error.

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

      ​@@saniyamulla8509
      def index(request):
      categories = Category.objects.all()
      expenses = Expense.objects.filter(owner=request.user)
      paginator = Paginator(expenses, 5)
      page_number = request.GET.get('page')
      page_obj = Paginator.get_page(paginator, page_number)
      try:
      user_preference = UserPreference.objects.get(user=request.user)
      currency = user_preference.currency
      except UserPreference.DoesNotExist:
      currency = None # Handle case where UserPreference does not exist

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

    I've got this error " 'WSGIRequest' object has no attribute 'User' " . Does anybody here help me?

  • @technoinfoworldwide2329
    @technoinfoworldwide2329 4 ปีที่แล้ว

    you have validate in amount filed (it cant be empty) , but if we mix number and text like '123text' in amount field then it throws error, how to validate the amount filed for this?

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

      in the validation, you can use the isdecimal function and return an error when the amount contains a string characters before you save to db. you can about the example usage here www.w3schools.com/python/ref_string_isdecimal.asp

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

      @@crycetruly why u didn't use form.py for creating add-expense?it would be might easier for creating and validating

  • @freekeys
    @freekeys 4 ปีที่แล้ว

    Please make video of web push notifications 🙏

  • @jhoanmartinezsilva2609
    @jhoanmartinezsilva2609 4 ปีที่แล้ว

    After finish this series, you could jump into generics, the repeat crud code eventually disappear