Build Realtime Chat App with Django Channels & Web Sockets

Поділитися
Вставка
  • Опубліковано 24 січ 2025

КОМЕНТАРІ • 52

  • @YusufSanni-g8x
    @YusufSanni-g8x 28 днів тому +2

    Honestly, i've gained a lot from your vedios right from when i started learning Django (one month ago). Keep up the good work bro may God reward you abundantly.

    • @the_proton_guy
      @the_proton_guy  28 днів тому

      Thank you so much! I am glad I could help

  • @muskanrathore8894
    @muskanrathore8894 6 місяців тому +3

    I have created this project and it's running well. I will recommend that this video is the best and simple video for a real-time chat application on UA-cam.Thanks Sir

    • @the_proton_guy
      @the_proton_guy  6 місяців тому +1

      Aw, thank you for your kind comment 🎉

  • @user-9bk
    @user-9bk 8 місяців тому +3

    Easy to Learn, Easy to Understand, Easy to Implement ❤
    Your teaching method is great.

    • @the_proton_guy
      @the_proton_guy  8 місяців тому

      Thank you so much! A sub to the channel would be helpful 🙏🏿

  • @SamTheReaper
    @SamTheReaper 7 місяців тому +1

    To be honest bro
    You're one of the best UA-camrs I've come across in terms of easy explaining and understanding
    Tnx alot

  • @abdullahqaralleh6045
    @abdullahqaralleh6045 Рік тому +2

    Hello the proton guy I’m ur biggest fan
    Love from the US💯❤️

  • @achievement9648
    @achievement9648 8 місяців тому +1

    today i completed this project and it is working properly, hope to see u on some of unique project ideas

    • @the_proton_guy
      @the_proton_guy  8 місяців тому

      Thank you! Happy to let you know that I am considering making a tutorial on a real time video calling web app with Django

  • @noormohamed6562
    @noormohamed6562 9 днів тому +1

    when i create a room it shows the websocket connection closed why?

    • @the_proton_guy
      @the_proton_guy  9 днів тому

      Probably because you are connecting to the wrong endpoint or you’ve not setup properly. Check the terminal for error logs and make sure you have done exactly what I explained on the tutorial

  • @hamzahahmed211
    @hamzahahmed211 4 місяці тому +1

    Hi, Where did you explain that line of code in connect ??

  • @BikerosGamerPT
    @BikerosGamerPT 3 місяці тому +1

    i'm getting this error "No route found for path 'ws/notification//'", i already seek many solutions but i can't solve it

    • @the_proton_guy
      @the_proton_guy  3 місяці тому

      Are you sure you setup the endpoint properly?

    • @BikerosGamerPT
      @BikerosGamerPT 3 місяці тому

      @@the_proton_guy i did everything acording to the video, so i don't know

    • @BikerosGamerPT
      @BikerosGamerPT 3 місяці тому

      @@the_proton_guy what is your channels version, i was using version 4.0, but now i switched to 3.0.5 and it worked

    • @the_proton_guy
      @the_proton_guy  3 місяці тому

      Hmmm interesting. I can’t remember what version I made use of. I am glad it works now

  • @harshitsahu5849
    @harshitsahu5849 3 місяці тому +1

    @26:31 haha, i see the first roomname

  • @A_K7-1
    @A_K7-1 6 місяців тому +1

    I this chat app how can we list all the connected users in real time ?

    • @the_proton_guy
      @the_proton_guy  6 місяців тому

      You will have to find a way keep track of that yourself when each user joins the chat. Perhaps creating a temporary list that stores all the users that are logged into a chat at any moment. So you append the username to list when user connects to socket and remove username from list when user disconnects from socket.
      This is just one simple way, you can use other methods

  • @surajpaikekar2977
    @surajpaikekar2977 9 місяців тому

    Hi, saw your whole implementation. That's great. Could you please try to explain your custom codebase whenever possible? because in the end, you were suppose to explain the leftover code, but i think you forgot it. Thank you.

    • @the_proton_guy
      @the_proton_guy  9 місяців тому

      Hello! Can you shed more light on what you mean by left over code so I know how to assist you

  • @Najmiddin0
    @Najmiddin0 9 місяців тому +2

    I downloaded and used your code, but I'm receiving new messages when I refresh the page.

    • @the_proton_guy
      @the_proton_guy  9 місяців тому

      Did you set it up properly?

    • @Najmiddin0
      @Najmiddin0 9 місяців тому

      @@the_proton_guy Yes, I didn't get an error. Also, when I refresh my page after clicking the send button, then I can see new websockets in the terminal.

    • @the_proton_guy
      @the_proton_guy  9 місяців тому

      @Najmiddin0 send me a screenshot on Instagram. My username is the_proton_guy

  • @Naisa28
    @Naisa28 Рік тому +1

    Hi. Thanks for this tutorial, I like how you teach. But i have an error with the code:
    raise ImproperlyConfigured("Cannot import ASGI_APPLICATION module %r" % path)
    django.core.exceptions.ImproperlyConfigured: Cannot import ASGI_APPLICATION module 'ChatProject.asgi'
    It hapenned with my project, so i download your github code and try a runserver but it throws the same error as my project. So i dont'k know what to do.
    It would be great if you know how to solve this, pls. :D

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

      Hello. Thank you for your kind words! You say you cloned my own code and ran it and it didn't run? First off, let's make sure that all the dependencies are installed properly

    • @Naisa28
      @Naisa28 Рік тому +1

      @@the_proton_guy Yes. That was the problem. I download all the dependencies and the virtual enviroment again just in case and now it works. Very thank you ^^. I hope you continue with the tutorials. They are so nice :D

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

      Thank you so much!

    • @sourinpal26
      @sourinpal26 9 місяців тому

      i have the same problem. I also ownload all the dependencies and the virtual enviroment again but this give same error

    • @the_proton_guy
      @the_proton_guy  9 місяців тому

      What error do you get?

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

    great thanks for this tutorial

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

    I’m working on a project but I find difficult to do the notifications. We can do a deal how much will it cost do notifications?

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

      Yea. Let’s talk on Instagram. Send me a message on Instagram. My username is the_proton_guy

  • @juniorMr
    @juniorMr 2 місяці тому +1

    Gained one more sub

  • @parthpatel5409
    @parthpatel5409 6 місяців тому +1

    Does this work for windows as well ?

  • @davidbilidam953
    @davidbilidam953 Рік тому +1

    Pls how about private chat like one on one

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

      That’s also possible but the logic will have to be changed, for that, an idea would be to create unique rooms between two users, using their usernames, since their usernames are unique, a room for only two users could for example have a room name: username1_username2 so only the 2 users who are friends can chat in the room

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

      Can you please help me with an example for two users . I have tried hard but still not getting it right

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

      What did you try

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

      To make private chats but not getting it right

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

      Text me on Instagram. the_proton_guy