Django Channels Tutorial - User Notifications, Echo Consumer, Tick Tock (not another Chat tutorial)

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 89

  • @harshvardhan4856
    @harshvardhan4856 4 года назад +1

    Thanks, man for helping me out when all others failed to explain such a simple concept. I owe you one.

  • @metatronicx
    @metatronicx 2 года назад

    Thank you for this sir. I've lost so much time before getting here. Thanks for your clear explanations. Really not another Chat tutorial

  • @armstrongsouljah4544
    @armstrongsouljah4544 4 года назад

    The concepts in the video help shed more light on most parts of the channels project.

  • @TheShuryansh
    @TheShuryansh 5 лет назад

    Sir love you.. You own a bhakt of yours from now.. I was confused as hell watching those chat videos.. You explained it so nicely..

  • @edthetech
    @edthetech 4 года назад

    Great tutorial. Thank you, Arun!

  • @tochimclaren
    @tochimclaren 3 года назад

    Why is the video getting 30 unlike? Unlike most tutorials about channels the just repeat what's on the documentation and a serious bad job at explaining anything. The most viewed django channels tutorials was the most confusing done by just django.

  • @IterativeTheoryRocks
    @IterativeTheoryRocks 4 года назад

    Very interesting - and useful. Having struggled with this a lot, this video was very clear.

  • @broteendas1194
    @broteendas1194 3 года назад

    Thanks... 29:20 helped...

  • @HappyAnimals3D
    @HappyAnimals3D 5 лет назад

    Thank you so much. I hope these concepts will be much helpful in establishing my Danjgo skills.

  • @augustinetharakan4363
    @augustinetharakan4363 5 лет назад

    Man Thank you soo much, you saved so much of my time. Really appreciate your work :)

  • @mohammadhrzn3146
    @mohammadhrzn3146 3 года назад

    you are a great man ty

  • @param8378
    @param8378 5 лет назад +2

    Please do stack overflow notification using channels 2

  • @satyasashi5859
    @satyasashi5859 5 лет назад +2

    Hi I was following your tutorial and so far good. At 17:00 I am getting
    --> Loading failed for the with source “localhost:8000/static/channels/js/websocketbridge.js”. localhost:8000:6:1
    --> ReferenceError: channels is not defined[Learn More] localhost:8000:13:15
    localhost:8000/:13:15
    in Web Console. Can anyone help me out with this?

    • @LukeMartinVideo
      @LukeMartinVideo 5 лет назад

      According to the docs, it's not supported anymore. What a pain !

  • @arthurlaveau514
    @arthurlaveau514 5 лет назад

    Nice video, it helps me a lot !

  • @jovantap2144
    @jovantap2144 4 года назад

    sir thank you, you help me through my project!

  • @HariKrishna-mu7ku
    @HariKrishna-mu7ku 3 года назад

    This is regarding the Notifications, I have a question. for suppose i am adding credentials and submitted after doing this operation a notification has to come in to a bell icon, after we want to do changes in the page and submitted the form. i want to get the notification for the changes i made in the page. create, delete, update. How can we do this all in django.

  • @bishbish9111
    @bishbish9111 5 лет назад

    Great tutorial, thanks!

  • @theandyandy9908
    @theandyandy9908 4 года назад

    /channels/js / websocketbridge.does anyone know how to follow a path other than this that has removed the support of js?

  • @IsItTimeToTravel
    @IsItTimeToTravel 5 лет назад

    Hi Arun . This was a brilliant video. Congrats . I have a query on the capability of Channels. Can we run a timer in the background and then take an action when that timer expires ? . The user in the front end can do whatever he likes during that time. I want to put a timer for Interview where Candidate is taking an exam while a timer is being run . He might move onto next question but clock is ticking .

  • @perfectigbadumhe113
    @perfectigbadumhe113 4 года назад

    its not working websocketBridge.js not found in console

  • @namesare4fools
    @namesare4fools 3 года назад

    cant u use simple windows.. i've lost track of what folders are you in.

  • @antonmullakhmetov707
    @antonmullakhmetov707 4 года назад

    thank you so much!

  • @srinivasr5567
    @srinivasr5567 6 лет назад

    nicely explained ...

  • @YavinArba
    @YavinArba 5 лет назад

    Thanks for the video! I also have your django best practices book :) !

    • @arunrocks
      @arunrocks  5 лет назад +1

      Awesome! Would love to read your review on it.

  • @merintom3294
    @merintom3294 5 лет назад

    I am getting an error channels not imported in javascript

  • @mounikeshmintu4607
    @mounikeshmintu4607 5 лет назад

    man you are genius

  • @sambitsahoo8071
    @sambitsahoo8071 3 года назад

    it shows error and not kept on disconnecting!!i'm trying on windows
    is there any other ways to build a push notification?

  • @williyjohn1091
    @williyjohn1091 5 лет назад

    Can please solve help in solving thie problem?
    ERROR : Uncaught ReferenceError: channels is not defined at HTMLDocument. ((index):11) ->>> const webSocketBridge = new channels.WebSocketBridge(); And yes, I have channels. Firefox: Error Failed to load the with origin ReferenceError: channels is not defined

  • @oscardavid8717
    @oscardavid8717 5 лет назад +1

    Google chrome:
    ERROR : Uncaught ReferenceError: channels is not defined
    at HTMLDocument. ((index):11)
    ->>> const webSocketBridge = new channels.WebSocketBridge();
    And yes, I have channels.
    Firefox:
    Error Failed to load the with origin
    ReferenceError: channels is not defined
    Help please, thanks.

    • @williyjohn1091
      @williyjohn1091 5 лет назад

      same probloem

    • @WaqasAhmad-ld6xz
      @WaqasAhmad-ld6xz 5 лет назад

      You should make folder "static " in your project repository and under the static meke folder channels and under it js and under it make file websocketbridge.py .goto to github repository of project and copy code of websocketbridge.py and paste it in your file websocketbridge.py .

    • @WaqasAhmad-ld6xz
      @WaqasAhmad-ld6xz 5 лет назад

      @@williyjohn1091 You should make folder "static " in your project repository and under the static meke folder channels and under it js and under it make file websocketbridge.py .goto to github repository of project and copy code of websocketbridge.py and paste it in your file websocketbridge.py .

    • @WaqasAhmad-ld6xz
      @WaqasAhmad-ld6xz 5 лет назад

      You should make folder "static " in your project repository and under the static meke folder channels and under it js and under it make file websocketbridge.py .goto to github repository of project and copy code of websocketbridge.py and paste it in your file websocketbridge.py .

  • @asmikasarigommula3961
    @asmikasarigommula3961 6 лет назад

    Arun. I am working on a chat app that has Rooms. Each room has two users. A user can be in multiple rooms i.e, a user has multiple rooms. And now he is chatting in one room. But he receives a message in another room. I would like to notify about the message from other room to the user. How should I implement this?

  • @akhils3561
    @akhils3561 4 года назад

    got Uncaught Reference error - it shows channel is not defined
    and also in terminal it shows : Not found /sw.js along with Http 404
    any help - highly appreciated.
    thanks in advance.

  • @becomeprogrammer2072
    @becomeprogrammer2072 4 года назад

    Thank you so much

  • @albertflores4176
    @albertflores4176 4 года назад

    Is the notification applicable even not using a websocket?

  • @AshvathNarayananCBCE
    @AshvathNarayananCBCE 4 года назад

    aioredis.errors.ReplyError: ERR unknown command 'EVAL'
    what should i do sir?

  • @fennecinspace
    @fennecinspace 6 лет назад

    why not use web var ws = new WebSocket('ws://' + location.host);

  • @julioargumedo6722
    @julioargumedo6722 5 лет назад

    Love your video, hello from mexico

  • @ayuzawamisaki239
    @ayuzawamisaki239 5 лет назад +1

    Can u share websocketbridge.js.. it was not in your git

    • @arunrocks
      @arunrocks  5 лет назад

      It got removed from Django Channels project recently. I have added it to my Git repository now.

    • @ionescu77
      @ionescu77 4 года назад

      Hi, I got stuck at the same place. websocketbridge.js was dropped in channels 2.4.2 :(

  • @TruongHoang-du9if
    @TruongHoang-du9if 5 лет назад

    Thanks!

  • @jaysinghkushwaha4461
    @jaysinghkushwaha4461 4 года назад

    please sir help me google colud problem this
    failed: Error during WebSocket handshake: Unexpected response code: 404

    • @akhillshetty2140
      @akhillshetty2140 4 года назад

      Channels has now removed the javascript wrapper. Follow documentation or a newer tutorial

  • @mamushakeman
    @mamushakeman 5 лет назад

    Thanks, that was so great. But I have still a misunderstanding. how can I send notification to just 2 consumer out of 5 consumer that was already registered and open the page for example. in the last application you teach how to filter notifications based on a specific task but I want filter it by registered user. thanks

    • @arunrocks
      @arunrocks  5 лет назад

      You have several options. Either filter the consumers when you recieve the the message based on some user property or move the subset of users to a separate group.

    • @mamushakeman
      @mamushakeman 5 лет назад

      very nice can you provide me an example code? @@arunrocks

    • @chaib115
      @chaib115 4 года назад +1

      @@arunrocks yes please we need a example howto send notifications to specific user or specific groupe of users the doc in not clear on how to create groupe and add users to it

  • @mlsmithjr
    @mlsmithjr 5 лет назад

    Thanks for this! I'm just getting started with channels and readthedocs was not as helpful as your video.

  • @vaibhavkumarchaudhary
    @vaibhavkumarchaudhary 5 лет назад

    I think this is the older version of channels

  • @niteshrawat576
    @niteshrawat576 5 лет назад

    Awesome video! can we replicate the same functionality on django admin panel. Like when a user is created from the front end, the admin panel show him without a refresh.

    • @arunrocks
      @arunrocks  5 лет назад +1

      I don't think it would be easy. You will need to create channel endpoints in the backend and make considerable changes in the admin frontend.

  • @Zzzzzzzzzzzzzzzzzzzzr
    @Zzzzzzzzzzzzzzzzzzzzr 6 лет назад

    one question I see on the official documentation site for django channels it says to use pipenv install -U channels and on your tutorial you did pipenv install channels is there a difference thank you ?

    • @arunrocks
      @arunrocks  6 лет назад

      I think you are referring to "pip install -U" which installs and upgrades. The tool I am using is "pipenv" which performs a lot more than pip like dependency management. I would recommend the latter.

    • @Zzzzzzzzzzzzzzzzzzzzr
      @Zzzzzzzzzzzzzzzzzzzzr 6 лет назад

      another question did you have trouble , I run into Microsoft visual C++ 14.0 required when trying to install channels

    • @Zzzzzzzzzzzzzzzzzzzzr
      @Zzzzzzzzzzzzzzzzzzzzr 6 лет назад

      how did you get Twisted installed I went to there site and says only python 3.3 is compatible at the moment thanks

  • @jsachin45
    @jsachin45 4 года назад

    just curious...which OS are you using?

  • @dgiri2333
    @dgiri2333 4 года назад

    Chanel's integrate to mqtt try to do one video

  • @bernardoolisan1010
    @bernardoolisan1010 4 года назад +1

    someone can tell me how to make a new message chat notification?

    • @amruthap6334
      @amruthap6334 4 года назад

      i was also looking for the same

  • @dominicmazzola3197
    @dominicmazzola3197 5 лет назад +1

    You should show the end product first

    • @iEslam3
      @iEslam3 5 лет назад +1

      he shouldn't do anything, be grateful and just skip to the end of the video

  • @iconicfilmframes
    @iconicfilmframes 4 года назад

    hello, my websocketbridge not listen. i wrote all of these codes in my own project but when i add user , nothing happened can u help me please?

  • @broteendas1194
    @broteendas1194 3 года назад

    27:56

  • @TV-dc4hh
    @TV-dc4hh 5 лет назад

    cool

  • @Zzzzzzzzzzzzzzzzzzzzr
    @Zzzzzzzzzzzzzzzzzzzzr 6 лет назад

    another question how are you getting it to work with python3.6 I keep running into issues installing channels

    • @arunrocks
      @arunrocks  6 лет назад

      I am using 3.6 as well. Which OS are you using and what issues do you face?

    • @Zzzzzzzzzzzzzzzzzzzzr
      @Zzzzzzzzzzzzzzzzzzzzr 6 лет назад

      Windows 7

    • @arunrocks
      @arunrocks  6 лет назад

      I don't have a Windows machine to test at the moment but yes I remember it was a little tricky to install twisted. For learning purposes, I strongly recommend setting up a Linux virtual machine using VirtualBox. Saves you a lot of time.

    • @Zzzzzzzzzzzzzzzzzzzzr
      @Zzzzzzzzzzzzzzzzzzzzr 6 лет назад

      I tried that as well with windows 7 cause other issues i may have to wait good tutorial though

  • @anuroop345
    @anuroop345 4 года назад

    Which terminal you are using?

    • @arunrocks
      @arunrocks  4 года назад +1

      XFCE Terminal, if I remember right.

    • @anuroop345
      @anuroop345 4 года назад

      @@arunrocks Thanks for reply. 😃

  • @vijinselvaraj
    @vijinselvaraj 6 лет назад

    hi brother i have this error how to solve this ( raise ValueError("No handler for message type %s" % message["type"])
    No handler for message type websocket.disconnect )

    • @chitrae5449
      @chitrae5449 6 лет назад

      Hi Arun, Even I got same error, after completing "Echoing consumer" part, I exactly did what you did, my code @ github.com/chitranjali/channels2proj , I am using safari browser, can you please let us know what might've gone wrong?

    • @arunrocks
      @arunrocks  6 лет назад +1

      Could you try comparing with the code on github?

    • @vijinselvaraj
      @vijinselvaraj 6 лет назад

      yes I am compared this code but not solved. if you have realtime chat program then please send me to my email svijinraj@gmail.com

    • @chitrae5449
      @chitrae5449 6 лет назад

      Sorry Arun! my bad, it was a typo :( , it's working perfect now, Thank you :)

    • @farwaali1819
      @farwaali1819 4 года назад +1

      Hello, I am also getting the same error. Double checked the code with repository too. Is there any solution?

  • @omarhafez6574
    @omarhafez6574 4 года назад

    17:15 covfefe :D :D