Using Sessions in Django

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 29

  • @HasoVids
    @HasoVids 4 роки тому +12

    Excellent explanation. Lifted the hood on something I thought would have been a lot more complicated than it seemed - thanks 👍

  • @christopherdoyle667
    @christopherdoyle667 3 роки тому +1

    You should consider a donation tab, your tutorials are excellent!

  • @lanceknickerbocker3209
    @lanceknickerbocker3209 4 роки тому

    Hi, Chuck! Thank you for explaining these concepts. I've been learning django dev since quarantine began. This has been super helpful in moving to the next level. Thanks!~

  • @phananh8589
    @phananh8589 4 роки тому

    you give learner knowledge, not just some codelines, thank prof.

  • @mutatinaabel4752
    @mutatinaabel4752 5 років тому +2

    Very informative Sir. Thanks for sharing your knowledge

  • @marcc1179
    @marcc1179 4 роки тому

    very clear explanation. I watched a few videos about sessions and this one is easiest to understand.

  • @АлександрЛобанов-щ2п

    Hello from Russia and thank you very mush for amazing explanation.Your channel is great

  • @ajaysharma1560
    @ajaysharma1560 5 років тому +2

    I liked the way of clarity in your video , Thanks for sharing info
    :)

  • @shuaibalghazali3405
    @shuaibalghazali3405 2 роки тому

    Very informative, thanks for posting

  • @kyleropp6634
    @kyleropp6634 4 роки тому

    I laughed at 0:28 because the image immediately reminded me of a Rube Goldberg machine. Thanks for simplifying things, though.

  • @kotebegiashvili5773
    @kotebegiashvili5773 Рік тому

    excellent explanation 👍👍👍

  • @Mj_All_In_One
    @Mj_All_In_One 4 роки тому

    That is a very powerful delivery of knowledge, keep posting more lectures. I just subscribed your channel and look forward to more of such lectures ;D

  • @vidyagidde
    @vidyagidde 2 роки тому

    Thank you for the knowledge

  • @hossein_sokhandan
    @hossein_sokhandan 4 роки тому

    I just commented to say love you Charles

  • @aHardReset
    @aHardReset 3 роки тому

    Awesome explanation. Thanks for the video

  • @aakashjana6225
    @aakashjana6225 4 роки тому

    Really loved the explanation.

  • @SaSha-hb5rq
    @SaSha-hb5rq 4 роки тому

    Thanks so much for such a great explanation. Hope your channel grow bigger

  • @thomascougnon9419
    @thomascougnon9419 4 роки тому

    Very useful explanation. Thank you.

  • @Klavionik
    @Klavionik 4 роки тому

    7:15 Actually, it's going to count 1-2-3-4-5 before the deletion happens.

  • @kienphan6436
    @kienphan6436 Рік тому

    TYSM

  • @briandethloff2451
    @briandethloff2451 3 роки тому

    thanks a lot.

  • @kumarshubham9217
    @kumarshubham9217 4 роки тому

    Thanks!

  • @unperrier5998
    @unperrier5998 4 роки тому

    At 7:00 did you know that del is a language keyword? It's not a function. The parenthesis is not required and it makes it look like a function, but it's not.

    • @ChuckSeverance
      @ChuckSeverance  4 роки тому +1

      Thanks. Nice to learn something new. I made an assumption given the function kerfuffle around print - but makes perfect sense when thinking of the Python OO model. Feels inconsistent. Looking at len() it does appear inconsistent. Ah well. I will only use it with parenthesis to show solidarity with print () and len() :) Thanks again.

    • @unperrier5998
      @unperrier5998 4 роки тому

      @@ChuckSeverance there's a fundamental difference between len() & print() on one side and del on the other: it's possible to write your own version of len() and print(), len is trivial whereas print is more involved, but it's not possible to write an implementation for del(). Why? because "del" calls __delitem__() on the dictionary itself but when it's a function, calling "del(some_dict[key])" passes one argument to the del() function: the value stored at some_dict[key] however del() needs to act on the dictionary itself, not on the value, but the relationship is gone once we've dereferenced the dictionary and obtained the value.
      del is a bastard legacy: it's meant to operate on variables (local and global variables are contained in dictionaries) but when used on an object it calls __delitem__()... depite looking like other languages, it's confusing for beginners when they learn python data model and "everything is an object" philosophy.
      I'd prefered have del be a proper function similar to getattr() and hasattr() for example named delitem()
      In any case, thanks for the django videos :)

    • @ChuckSeverance
      @ChuckSeverance  4 роки тому

      @@unperrier5998 Thanks for the clarification. I rarely use del so that is why I never dug into the detail.

  • @KevinTempelx
    @KevinTempelx 4 роки тому

    Thanks!