DJANGO CHANNELS 2 Tutorial (V2) - Real Time - WebSockets - Async

  Рет қаралды 164,191

CodingEntrepreneurs

CodingEntrepreneurs

Күн бұрын

Пікірлер: 389
@CodingEntrepreneurs
@CodingEntrepreneurs 2 жыл бұрын
It's 2022 -- who wants a new version of this series? Please comment below. Also here are the chapters: 0:00:00 - Welcome 0:00:49 - Requirements 0:01:38 - Install and Integrate Channels 0:05:47 - Your First Consumer 0:10:41 - Routing your WebSocket 0:17:22 - WebSocket with JavaScript 0:23:25 - Accept WebSocket Connection 0:27:08 - Users & Database Objects 0:31:09 - Sending Data with JavaScript 0:39:00 - Echo Messages 0:43:23 - Display Messages 0:50:25 - Integrate Redis 0:54:24 - Create the Chat Room 1:04:30 - Reconnect and Save
@mateuszwojtowicz3762
@mateuszwojtowicz3762 2 жыл бұрын
i do
@AhmadAli-wt8zy
@AhmadAli-wt8zy 2 жыл бұрын
plz
@masumhasan6623
@masumhasan6623 2 жыл бұрын
Please make a new version of this course. Will be really helpful
@lomic77
@lomic77 2 жыл бұрын
It would be nice 😁
@sarojkumarsingh2836
@sarojkumarsingh2836 2 жыл бұрын
Please a new version would be very helpful
@aydencraig9542
@aydencraig9542 4 жыл бұрын
So thankful to find a tutorial that actually explains what is happening instead of just copying and pasting code. Thank you for this!!
@druzhininpavel
@druzhininpavel 4 жыл бұрын
15:59 you should login as first superuser and go to the messages url of the second superuser. You'll get an error if you try to get Thread of the same user as logged in.
@waseem-cybercity3536
@waseem-cybercity3536 4 жыл бұрын
Thanks! I was wondering what was going on.
@cricketinpie4491
@cricketinpie4491 4 жыл бұрын
Send me the whole code please.... GitHub profile link??
@cephas_knight
@cephas_knight 4 жыл бұрын
thank youuu
@darkbluewalther
@darkbluewalther 4 жыл бұрын
True, but how do you fix it?
@hirumakazeko
@hirumakazeko 4 жыл бұрын
THANK YOU omg you saved me
@roccociccone597
@roccociccone597 4 жыл бұрын
I literally became a django pro because of this channel. Absolutely love this guy. Keep it going.
@TaPO4eg3D
@TaPO4eg3D 6 жыл бұрын
Absolutely awesome, man! It's cool to see you doing more advanced Django tutorials. Never used Django channels before but it's a great chance to try it out. Thank you, Justin!
@anoopkg8681
@anoopkg8681 4 жыл бұрын
Whenever I watch your videos, I disable my ad block, at least that's what I could do
@syedbilalali2316
@syedbilalali2316 4 жыл бұрын
This cleared out all the problems that I was having for a week in just an hour. Thank you
@missionaryfamily1897
@missionaryfamily1897 4 жыл бұрын
Man I cannot believe it you're such a good teacher
@helloworld12354
@helloworld12354 6 жыл бұрын
Wow man dope! You have started to take your django tutorials on a whole new level mate! Lots of love as always and keep it up!
@CodingEntrepreneurs
@CodingEntrepreneurs 6 жыл бұрын
Thanks buddy
@cricketinpie4491
@cricketinpie4491 4 жыл бұрын
Send me the whole code please.... GitHub profile link??
@NphiniT
@NphiniT 4 жыл бұрын
If you're on Windows and you have problems installing channels with an error like: Microsoft Visual C++ 14 is required, Download Twisted from www.lfd.uci.edu/~gohlke/pythonlibs/#twisted. Choose the win32 one corresponding to your python version. For instance, I used Python 3.8; so I downloaded Twisted‑20.3.0‑cp38‑cp38‑win32.whl (Notice "cp38"). Once downloaded, navigate to the download folder in your command prompt and run 'pip install ' followed by the file u just downloaded. After this you can install channels or whatever. You're welcome!
@cricketinpie4491
@cricketinpie4491 4 жыл бұрын
Send me the whole code please.... GitHub profile link??
@NphiniT
@NphiniT 4 жыл бұрын
@@cricketinpie4491 What code?
@cricketinpie4491
@cricketinpie4491 4 жыл бұрын
@@NphiniT actually I want the code which is done in this video on GitHub of cfe only the starter code is available..??
@NphiniT
@NphiniT 4 жыл бұрын
@@cricketinpie4491 It's not exactly the same though. I watched it to revise. I'll upload it to my github now. I'll reply with the link in a bit
@cricketinpie4491
@cricketinpie4491 4 жыл бұрын
it would be a great help, eagerly waiting for your reply??
@leandroalmeida971
@leandroalmeida971 4 жыл бұрын
Excellent video. It helped me a lot in the project I'm doing, I was running after a tutorial on channels and I finally found a great one! Congratulations and may you be very successful in your projects!
@CodingEntrepreneurs
@CodingEntrepreneurs 4 жыл бұрын
Thank you!
@amruthap6334
@amruthap6334 4 жыл бұрын
hey can you tell me how to install redis on my windows 10
@maimunarahman7837
@maimunarahman7837 3 жыл бұрын
me too
@sarthakgawri
@sarthakgawri 2 жыл бұрын
@@amruthap6334 Use docker desktop and follow the channels documentation
@sarthakgawri
@sarthakgawri 2 жыл бұрын
@@maimunarahman7837 Docker desktop
@mobileplay5487
@mobileplay5487 5 жыл бұрын
Very good tutorial on django channels with step by step guide. Thank you!
@tejasmandre666
@tejasmandre666 4 жыл бұрын
Hey man ! This was awesome. I really wondered what you exactly talking about at first, but then later I watched it like 10 time along with having the docs at the side. And it all started making sense. This video of channels and channels docs together is ❤️
@mugumyakevin8696
@mugumyakevin8696 4 жыл бұрын
I followed your advice man. Made it to the 7th time and got a read through those docs. Things become clearer with time.
@cricketinpie4491
@cricketinpie4491 4 жыл бұрын
Send me the whole code please.... GitHub profile link??
@BenniK88
@BenniK88 3 жыл бұрын
Yeah tutorial speed is really fast. I also needed some docs aside
@nirmalpandey600
@nirmalpandey600 4 жыл бұрын
Kudos to your dedication brother.I learn a ample concept from you.Love You from Nepal!
@mirrormirage0
@mirrormirage0 6 жыл бұрын
pure awesomeness..... The best explanation on django channels by far.
@Irshu
@Irshu 4 жыл бұрын
This is very cool. You made a step by step tutorial to go through the whole socket connection lifecycle. I'm working on a quotes app that streams realtime securities quotes, so i thought of exploring Django channels to make it happen. Your tutorial really get me going. Thanks a lot!
@steelwolf180
@steelwolf180 6 жыл бұрын
Awesome tutorial we're looking at this as well due to the need from our end to provide data to front end in Angular
@CodingEntrepreneurs
@CodingEntrepreneurs 6 жыл бұрын
Thank you!
@poormancodespmc4598
@poormancodespmc4598 4 жыл бұрын
Do you happen to find good documentation on how to make it works with angular? I don't try yet, but I am new to angular and don't find yet a good documentation for it.
@cricketinpie4491
@cricketinpie4491 4 жыл бұрын
Send me the whole code please....
@mateusribeiro9384
@mateusribeiro9384 4 жыл бұрын
@@poormancodespmc4598 I tried with Vue and it's hell on earth to find good resources.
@poormancodespmc4598
@poormancodespmc4598 4 жыл бұрын
@@mateusribeiro9384 I guess.
@fadyghalayiny1920
@fadyghalayiny1920 3 жыл бұрын
great course as usual can you please make a small video how to upgrade project from channels 2 to channels 3
@medoabdin480
@medoabdin480 2 жыл бұрын
you are really amazing bro. actually, you have a nice illustration to simplify the idea, thanks a lot
@jurajnajiva
@jurajnajiva 5 жыл бұрын
If you are trying to put this into production by using uvicorn and are getting the following error "Django can only handle ASGI/HTTP connections, not websocket." its because you should call get_default_application() from the channels.routing instead of get_asgi_application() from the django core. (ps: You have to call django.setup() before)
@arenmkhoyan
@arenmkhoyan 6 жыл бұрын
Yes yes yes. Thank you bro please continue this tutorial☺👍
@radosawskabania1529
@radosawskabania1529 4 жыл бұрын
Saved me a lot of headaches, appreciate your effort cfe !
@dalmasogembo7034
@dalmasogembo7034 4 жыл бұрын
This tutorial is amazing I have most of them in my downloads, almost becomeing a ninja in django through this channel
@cricketinpie4491
@cricketinpie4491 4 жыл бұрын
Send me the whole code please.... GitHub profile link??
@boryskuczkowski
@boryskuczkowski 6 жыл бұрын
on 24:34 after putting await self.send({ "type": "websocket.accept" }) saved and all but console log still gives me the same error...
@saichavali8175
@saichavali8175 6 жыл бұрын
have u fixed the error If yes please let me know as I am also facing same problem
@jasonli7375
@jasonli7375 6 жыл бұрын
same here, seems the original django code is not correct
@carlose4616
@carlose4616 5 жыл бұрын
I know that is late, but also can be useful for someone else that error can be fixed if you add a slash to this line of code: var endpoint = wsStart + loc.host + loc.pathname + '/' that is how I fixed the "Error during WebSocket handshake: net::ERR_CONNECTION_RESET)" Btw all the code still working in the lastes versions of Django and Channels at least until today haha
@rayemery788
@rayemery788 5 жыл бұрын
@@carlose4616 worked for me too
@martincastellon5701
@martincastellon5701 5 жыл бұрын
@@carlose4616 I fucking thank you so much!!!!
@FillerWorld
@FillerWorld 3 жыл бұрын
This content is so dope, keep moving! Do not stop!
@chaudharypraveen98
@chaudharypraveen98 4 жыл бұрын
Amazing sir.. Thanks for making such kind of videos. Your's videos are really helpful.
@CodingEntrepreneurs
@CodingEntrepreneurs 4 жыл бұрын
Thank you
@akashsahoo745
@akashsahoo745 3 жыл бұрын
justin you are a rockstar you made my life easy
@vinayarora7334
@vinayarora7334 4 жыл бұрын
Wow you're awesome. You keep on learning and teaching cool things. Awesome.
@johnrperry5897
@johnrperry5897 5 жыл бұрын
What lead you to the conclusion that you'd have to create the `chat_message` method? 1:00:14
@cricketinpie4491
@cricketinpie4491 4 жыл бұрын
Send me the whole code please.... GitHub profile link??
@faizanfareed9076
@faizanfareed9076 5 жыл бұрын
Best tutorial for beginner's
@tonydias4290
@tonydias4290 6 жыл бұрын
CONGRATULATIONS!! You rock. It would be perfect if you make a video with channels with DRF, redis and celery (as backend) and react.js as frontend. Like full application, profile and so on. :) THX!!!
@CodingEntrepreneurs
@CodingEntrepreneurs 6 жыл бұрын
Thank you!! Channels replaces the need for celery (actually I’m pretty sure they don’t play well together at all). Love the suggestion. What type of app would you want to see?
@tonydias4290
@tonydias4290 6 жыл бұрын
CodingEntrepreneurs Nice! Good to know. Absolutely helpfull. Thx again
@thefreakingmindistaken
@thefreakingmindistaken 6 жыл бұрын
Can you build a Full Analytics Dashboard in Django using d3.js and realtime analytics.
@johnrperry5897
@johnrperry5897 5 жыл бұрын
@@CodingEntrepreneurs if channels replaces celery, then that means that channels can run scheduled tasks?
@Irshu
@Irshu 4 жыл бұрын
wait, how do u replace Celery with Channels. We use celery to run cron jobs mainly.
@mugumyakevin8696
@mugumyakevin8696 4 жыл бұрын
Fantasticcccc👌👌. This is so well articulated and clear. Respect to you and humbled for this content man.
@AjaySharma-jv6qn
@AjaySharma-jv6qn 3 жыл бұрын
really helpful, thanks for your work, Many likes from India :)
@rasmuslinden3572
@rasmuslinden3572 6 жыл бұрын
This is by far one of the best tutorials i have ever watched, went straight and signed up. Thank you so much!
@CodingEntrepreneurs
@CodingEntrepreneurs 6 жыл бұрын
Thank you!
@lekanakanbi9346
@lekanakanbi9346 6 жыл бұрын
YESSSSSS i have been waiting for this a long time Thanks
@CodingEntrepreneurs
@CodingEntrepreneurs 6 жыл бұрын
🙌
@cricketinpie4491
@cricketinpie4491 4 жыл бұрын
Send me the whole code please.... GitHub profile link??
@vishnupriyasrivastava3988
@vishnupriyasrivastava3988 6 жыл бұрын
really a good video!!.Please make video on how to show messages with their usernames if more than two users are there in a chat room
@vladbelozertsev4084
@vladbelozertsev4084 6 жыл бұрын
Thank you for the video)) Can anybody help me? When i add send await self.send accept (24:21)and started server i have error:Error during WebSocket handshake: net::ERR_CONNECTION_RESET and in source - var socket = new WebSocket(endpoint) pointedly red
@carlose4616
@carlose4616 5 жыл бұрын
I know that is late, but also can be useful for someone else that error can be fixed if you add a slash to this line of code: var endpoint = wsStart + loc.host + loc.pathname + '/' that is how I fixed the "Error during WebSocket handshake: net::ERR_CONNECTION_RESET)" Btw all the code still working in the lastes versions of Django and Channels at least until today haha
@DanielRivera-vb8xh
@DanielRivera-vb8xh 5 жыл бұрын
@@carlose4616 Thanks, that was the answer to my problem!
@89elmonster
@89elmonster 6 жыл бұрын
I watched the entire video, it was great and my only concern was the lack of coverage of the models, that's all. Other than that this video was very informative!
@ursolusproductions7188
@ursolusproductions7188 4 жыл бұрын
where do you include broadcast_msg_to_chat??????
@andreisima1977
@andreisima1977 6 жыл бұрын
:) This is what i need. A intro to Django Channels Just started to watch. And i think that combined with graphQL can be quite powerful. Read/Write Fragments on front-end cache to update the data state... i will try it in the near future. BTW update requirements.txt on git.
@chance2480
@chance2480 5 жыл бұрын
Looking swole brotha. Nice video thanks :)
@rajkumargosavi2890
@rajkumargosavi2890 6 жыл бұрын
Great video. Must needed django-channels tutorial
@falakchhikara7230
@falakchhikara7230 4 жыл бұрын
Sir can you explain why we are using chat_room = f"thread_{thread_obj.id}" ,, time - 56:40
@falakchhikara7230
@falakchhikara7230 4 жыл бұрын
@@furkankoksald4201 thanx But why we are using thread_ in starting
@falakchhikara7230
@falakchhikara7230 4 жыл бұрын
@@furkankoksald4201 why only thread_
@dalmasogembo7034
@dalmasogembo7034 4 жыл бұрын
It is thread because that is what he chose it to be otherwise any chatroom name can work, you need to have specific names for each chatroom to send messages in the right way
@falakchhikara7230
@falakchhikara7230 4 жыл бұрын
@@dalmasogembo7034 ya chatroom name has to be unique and same for both users
@adammaulana6116
@adammaulana6116 4 жыл бұрын
Hey mate, thanks for being kind :D
@worthitjobsadmin9707
@worthitjobsadmin9707 4 жыл бұрын
Thanks a ton,Your work justifies your channel name
@amruthap6334
@amruthap6334 4 жыл бұрын
hello. i am facing so much trouble installing redis in my windows 10.. please elaborate what steps should i follow to install it through cmd.. please i have to complete this project by this month
@amirmubarak8967
@amirmubarak8967 6 жыл бұрын
great explanation on django channels. django + no-sql integration will be now on high demand. please make for it :)
@kaiserkonok
@kaiserkonok 3 жыл бұрын
Thank you so much. It was awesome🔥🔥🔥
@meeragangani7311
@meeragangani7311 4 жыл бұрын
Cannot import ASGI_APPLICATION module 'cfehome.routing' Can you please help me out!!!
@larsyboy2222
@larsyboy2222 4 жыл бұрын
I might be a little too late with this response but could it be possible you didn't add the routing.py file in this exact folder? "./src/cfehome/" I am telling you this because I resolved the same error.
@mufidrazmin8929
@mufidrazmin8929 5 жыл бұрын
Great video. Pleaseake an indepth video of django signals, celery, memcaching etc
@AnnSmesh
@AnnSmesh 5 жыл бұрын
Thank's for this detailed tutorial :) it's very usefull and helped me to understand all)
@ThePirateHistory
@ThePirateHistory 6 жыл бұрын
Hello, thank you for the long-awaited lesson, I wanted to ask, I saw that you have projects in your projects, deplyoment, on digitalocean, apache was the server, why exactly? I for example through nginx, yes with the new version there there was a hemorrhoid, in a kind of caching of files, now caching is not established for the separate block, on type to store css, and so on, now it is installed in so to say in the parent block, that is stupid for all , as I did not try to expose only for the files, it does not work for them, I expose them to the parent block, caching works, but I found the solution to expose to the parent block as I said) but why apache?
@CodingEntrepreneurs
@CodingEntrepreneurs 6 жыл бұрын
So you’re saying I should do a tutorial on deployment with Nginx? 👀
@ThePirateHistory
@ThePirateHistory 6 жыл бұрын
I would be glad), although you need to ask all x)
@niranjanrao1592
@niranjanrao1592 4 жыл бұрын
@@CodingEntrepreneurs Deployment tutorial through Daphne/ Nginx would be very useful. Particularly for PaaS (like GAE) because most new folks use that. Is it even possible to deploy through only Daphne without altering Nginx conf?
@hameedyusuf6664
@hameedyusuf6664 4 жыл бұрын
@@CodingEntrepreneurs yea this would be nice
@luskbo
@luskbo 6 жыл бұрын
cannot unpack non-iterable NoneType object ./chat/views/py ::: Getting this error at 16:00. Any ideas? I login to admin first, but get error when going to /messages/user
@abyk7990
@abyk7990 6 жыл бұрын
go to the other user created
@olegnedbaylo5092
@olegnedbaylo5092 5 жыл бұрын
src/chat/models.py line 18, the method get_or_new is expected return a tuple but in that line it returns only None.
@mobileplay5487
@mobileplay5487 5 жыл бұрын
Yes maybe it should return (username, other_username) as tuple.
@vitaly7491
@vitaly7491 6 жыл бұрын
It's very important theme. Thank you.
@kamruzzamantauhid7445
@kamruzzamantauhid7445 3 жыл бұрын
Very helpful. Is there a tutorial for using WebRTC with Django? EDIT: Problem solved. I was able to use WebRTC with Django channels to build a video chat web application. This video was a lot of help.
@exploringMyself998
@exploringMyself998 3 жыл бұрын
Bro does this video have previous part cause the Thread model part has already been built ??
@kamruzzamantauhid7445
@kamruzzamantauhid7445 3 жыл бұрын
@@exploringMyself998 I don't know about that, brother.
@exploringMyself998
@exploringMyself998 3 жыл бұрын
@@kamruzzamantauhid7445 ok bro
@swetlampa
@swetlampa 3 жыл бұрын
The information is extremely useful! Thank you very much!! Aaaand... I also really enjoyed the voice :)
@justastudent4965
@justastudent4965 5 жыл бұрын
my best Django Tutor
@mzgz4216
@mzgz4216 6 жыл бұрын
man that was owesome , many thanks to you
@CodingEntrepreneurs
@CodingEntrepreneurs 6 жыл бұрын
You're welcome!
@boiyedove
@boiyedove 5 жыл бұрын
Great Video Justin! Been with you since 2015 and it's been awesome as ever!. Keep up the awesome work! Quick question; how would you take this further to send notifications to said users about the availability of new messages?
@JuckReis
@JuckReis 4 жыл бұрын
Great Tutorial. Thanks! How would it be for receive mobile connections (something like an REST Api), to create a chat on the Mobile Application ?
@dalmasogembo7034
@dalmasogembo7034 4 жыл бұрын
You can try using ionic or react with the websockets in the frontend in JavaScript or typescript then do the normal URL routing in Django then match your frontend urls with the Django urls. Lack of stable internet slows me down from doing this
@shahabmalekzade4794
@shahabmalekzade4794 4 жыл бұрын
Hi, Thank you for your great tutorial, I have a question. I want to get some API data in the backend and send them to all of the web page visitors continuously. Say I want to show some stock market info to everyone visiting the web page. I know how to get the data from API, but I don't know how to send them to all every 5 second continuously without the frontend asking. how can I implement that efficiently? Thanks.
@Michayeee
@Michayeee 5 жыл бұрын
Did I miss something? Where did you created this input in template? When did you create those models in models.py? I also check your github and it is not working like here on video. Am i miss something?
@CodingEntrepreneurs
@CodingEntrepreneurs 5 жыл бұрын
I don’t remember exactly to be honest. If you pull from github be sure to install the versions from thete
@bryanstrader1740
@bryanstrader1740 4 жыл бұрын
I'm late to this party, but great video.
@karanv293
@karanv293 3 жыл бұрын
great content! thanks bro. is it possible for you to do a tutorial series on implementing DjangoRestFramework with Channels. that way we can implement chat, notifications in flutter. that would be a cool series and im pretty sure I haven't come across that on youtube.
@mubashshiralibaig6104
@mubashshiralibaig6104 4 жыл бұрын
i have the same directory structure as this tutorial but "from chat.consumers import ChatConsumer" is prompted to be incorrect in my pycharm, what am i doing wrong??
@Saradomin65
@Saradomin65 4 жыл бұрын
Same here, have you solved it?
@mubashshiralibaig6104
@mubashshiralibaig6104 4 жыл бұрын
@@Saradomin65 appearently pycharm has some path issues, when i opened the project on vscode, it started running.
@ivanabregu1
@ivanabregu1 5 жыл бұрын
Thanks Justin for another amazing work!
@jakhongiralikhanov8309
@jakhongiralikhanov8309 3 жыл бұрын
@CodingEntrepreneurs How can I connect WebSocket with Django Project built-in Docker?
@Alejandro-pf5dk
@Alejandro-pf5dk 5 жыл бұрын
Why does clicking "Submit" redirect me to "/messages" and not to "/messages/username" ?
@jazzeverything121
@jazzeverything121 5 жыл бұрын
in urls.py insert "/" in the urls like this "re_path(r"^(?P[\w.@+-]+)/", ThreadView.as_view()) "
@ahnabshahin
@ahnabshahin 4 жыл бұрын
My success url='. /' not working
@helenren3194
@helenren3194 4 жыл бұрын
Class ChatMessage has no 'objects' member on 1:06:00
@helenren3194
@helenren3194 4 жыл бұрын
there is no 'objects' field in the ChatMessage model from the code downloaded from GitHub
@orkhanrustamli2039
@orkhanrustamli2039 4 жыл бұрын
Hi. Thanks for amazin tutorial, really helped me understanding basics of Channels. The only thing stays confusing for me is Redis usage in Channels. What is its purpose? Just connecting several instances? But how it accomplishes it? There is no much information on documentation of Channels as well.
@WernerRaath
@WernerRaath 5 жыл бұрын
Maybe instead of using virtualenv etc, rather just use the python:3.6 Docker? Awesome bud btw. been using Django for years and decided to try out channels and this video made it super easy
@leonardobarrios1509
@leonardobarrios1509 4 жыл бұрын
Could you help me with a question, to create a streaming that you would implement? socket or is there another opencv way. Thanks for sharing your knowledge.
@georgikjoseph4287
@georgikjoseph4287 4 жыл бұрын
I got stuck, please guide me Exception inside application: ERR unknown command 'BZPOPMIN'
@bernardoolisan1010
@bernardoolisan1010 4 жыл бұрын
did you fixed it?, I am having issues with that too
@sabuta100
@sabuta100 4 жыл бұрын
Were you able to fix it? I'm running into the same problem. When I execute redis-server it displays bind: No such file or directory.
@bernardoolisan1010
@bernardoolisan1010 4 жыл бұрын
@@sabuta100 I fix it, I was in windows, so I install the redis version of microsoft open tech, I search deep and I found that it was problem of the version, the latest version of redis that microsoft open tech gives you is redis 3, but the error says "BZPOPMIN" redis 3 does not support "BZPOPMIN" the only version of redis that supports BZPOPMIN is redis 5, to install redis 5 you need to install the ubuntu subsystem for windows, it has to be ubuntu 20, I follow this tutorial kzbin.info/www/bejne/rJuYk4GcfaiZmJY
@narendrakushwaha5132
@narendrakushwaha5132 4 жыл бұрын
just update your channels_redis then run it again
@Tastybiscuit64
@Tastybiscuit64 4 жыл бұрын
You should sanitize the user input or someones gonna XSS that chat room. Nice video.
@helloworld12354
@helloworld12354 6 жыл бұрын
How about django and elasticsearch integration mate!
@dominicmazzola3197
@dominicmazzola3197 5 жыл бұрын
Why not use haystack?
@cricketinpie4491
@cricketinpie4491 4 жыл бұрын
Send me the whole code please.... GitHub profile link??
@taihatranduc8613
@taihatranduc8613 4 жыл бұрын
thank you. thanking for making this video
@martincastellon5701
@martincastellon5701 5 жыл бұрын
#When adding: await self.channel_layer.group_add( chat_room, self.channel_name ) #I get this error in the console: 019-03-08 18:49:46,469 - ERROR - server - Exception inside application: 'WebSocketProtocol' object has no attribute 'handshake_deferred'
@Realzingx
@Realzingx 4 жыл бұрын
Great tutorial as always, how would you go about implementing a multi window chat system? facebook like.
@meet_gondaliya
@meet_gondaliya 2 жыл бұрын
Hey, very nice tutorial. I hhave a question. How to send data from the database to a certain page? I don't have an chat app, but more like a analytics dashboard.
@Funnisrock
@Funnisrock 4 жыл бұрын
I need a periodic refreshing of data in json format. I have used django rest framework. Can I integrate django channels in drf?
@abuchiaroh119
@abuchiaroh119 4 жыл бұрын
thank you for such a wonderful video but please my ws is not connecting it keep saying no route found... it disconnect during ws handshake please help
@lamepic
@lamepic 3 жыл бұрын
Great video. Will this work with drf? if not please make a tutorial on django channels and drf.
@karan_rathore
@karan_rathore 4 жыл бұрын
Please help! I understand that you store messages in the database on receive but how you are you retrieving messages from the database on reconnecting WebSocket and resending them.
@jaysinghkushwaha4461
@jaysinghkushwaha4461 5 жыл бұрын
please sir help me google colud problem this failed: Error during WebSocket handshake: Unexpected response code: 404
@CodingEntrepreneurs
@CodingEntrepreneurs 5 жыл бұрын
404 is page not found
@CodingEntrepreneurs
@CodingEntrepreneurs 5 жыл бұрын
Are you sure you have the correct routing?
@jaysinghkushwaha4461
@jaysinghkushwaha4461 5 жыл бұрын
@@CodingEntrepreneurs chatting is working locakky but when i moved to google cloud its not working. can you please suggest me how to proceed?
@boiyedove
@boiyedove 5 жыл бұрын
Hello Justin. Please do you have any guide on how to deploy django channels on webfaction?
@abhishekdubey31
@abhishekdubey31 3 жыл бұрын
HI There, I want to understand that can we use rest api and webscokets together ? I have a use case where a no of rest api are already working using djangorestframwork and now i want to add websocket in the same project. Is it possible?
@exploringMyself998
@exploringMyself998 3 жыл бұрын
Bro does this video have previous part cause the Thread model part has already been built ??
@jaspervandijk27
@jaspervandijk27 2 жыл бұрын
How would we go about and implement rate limiting?
@shahabmalekzade4794
@shahabmalekzade4794 4 жыл бұрын
You are my hero bro 🌹🌹🌹
@saitaro
@saitaro 5 жыл бұрын
Thanks mate, that was useful and interesting
@lublorrylamysere5863
@lublorrylamysere5863 6 жыл бұрын
Amazing, this helps me a lot with my project, Thank you so much. However, I see in your console 37:26 also in mine some weird logging occurs after 2 or 3 seconds. `WARNING - server - Application instance
@subramanians7413
@subramanians7413 5 жыл бұрын
Hi All, I don't see any setting of channel layer here, does the new channels library manage this under the hood? or the channel layer is optional? Can some one explain please
@slash1108
@slash1108 4 жыл бұрын
Hi, i'm working on a project with django and angular, I will implement a video chat and I'm wondering if django channels could work as the signaling server for the webrtc process.
@kiranv6495
@kiranv6495 5 жыл бұрын
Great Tutorial. Thank you so much :)
@Felipedotcom
@Felipedotcom 6 жыл бұрын
Really nice tutorial!!. It covers a lot of stuff and the examples are great. I would have appreciated to get to know a little better how it works with the models, but anyway. I'm currently doing a django project using DRF and I just realised that if I want real time applications I would have to use something like django channels. The question is, should I rewrite all my code to send data through websockets?, or maybe just using the websocket to check if there are new items, send a response to the frontend like saying "Hey there are new items, fetch again using REST" would be a good approach? Thanks!
@augustuscaeser8939
@augustuscaeser8939 5 жыл бұрын
how did you find that model. i cant find that model 30:17
@boiyedove
@boiyedove 5 жыл бұрын
Also what's the difference between using ReconnectingWebsocket and webSocketBridge?
@amruthap6334
@amruthap6334 4 жыл бұрын
hello. i am facing so much trouble installing redis in my windows 10.. please elaborate what steps should i follow to install it through cmd.. please i have to complete this project by this month
@dalmasogembo7034
@dalmasogembo7034 4 жыл бұрын
Installing redis on windows is big problem but you can quickly do it by installing Microsoft visual c++ build tools then download the redis itself then try installing separately without pip installing it again
@dalmasogembo7034
@dalmasogembo7034 4 жыл бұрын
You can try adding it to your path variable in the environment variables
@amruthap6334
@amruthap6334 4 жыл бұрын
@@dalmasogembo7034 hey thank you so much for helping me out. yeah i got many errors like Eval command not found that not found. so i downloaded v5 of redis seperately and it worked. thank you so much for taking time and replying 🌺❤️☺️
@dalmasogembo7034
@dalmasogembo7034 4 жыл бұрын
Welcome
@laubernardini
@laubernardini 4 жыл бұрын
AWESOME! Great video, thanks!! Do you know if it is possible to get database updates to show it in realtime??
@tamirtsogbayar3912
@tamirtsogbayar3912 5 жыл бұрын
I love this lesson so much
@noraxu1439
@noraxu1439 4 жыл бұрын
Great tutorial! Thank you!
@giacattranquoc4761
@giacattranquoc4761 6 жыл бұрын
at 16:29 , I can't go into the adress web with url: 127.0.0.1:8000/messsages/admin with admin is my acc
Django Channels & WebSockets Oversimplified
16:35
Dennis Ivy
Рет қаралды 145 М.
Learn Django - Build an Asynchronous Chatroom with Django and Channels
1:31:27
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Django + Chart.js // Learn to intergrate Chart.js with Django
26:45
CodingEntrepreneurs
Рет қаралды 232 М.
Custom Django User Model // DJANGO Tutorial
1:04:40
CodingEntrepreneurs
Рет қаралды 156 М.
The First Amiga Virus - Something Wonderful Has Happened
17:05
Modern Vintage Gamer
Рет қаралды 86 М.
How to Build Real Time Interactions in Your Django 3 App
1:11:10
Django Channels Tutorial - 1 // Creating a chat application
32:17
Matt Freire
Рет қаралды 288 М.
Learn the Basics of Django Signals
22:37
Matt Freire
Рет қаралды 50 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН