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

  Рет қаралды 163,855

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 Жыл бұрын
Please a new version would be very helpful
@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!
@roccociccone597
@roccociccone597 4 жыл бұрын
I literally became a django pro because of this channel. Absolutely love this guy. Keep it going.
@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??
@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!!
@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
@anoopkg8681
@anoopkg8681 4 жыл бұрын
Whenever I watch your videos, I disable my ad block, at least that's what I could do
@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 2 жыл бұрын
me too
@sarthakgawri
@sarthakgawri 2 жыл бұрын
@@amruthap6334 Use docker desktop and follow the channels documentation
@sarthakgawri
@sarthakgawri 2 жыл бұрын
@@maimunarahman7837 Docker desktop
@syedbilalali2316
@syedbilalali2316 4 жыл бұрын
This cleared out all the problems that I was having for a week in just an hour. Thank you
@mobileplay5487
@mobileplay5487 5 жыл бұрын
Very good tutorial on django channels with step by step guide. Thank you!
@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!
@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??
@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?
@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.
@arenmkhoyan
@arenmkhoyan 6 жыл бұрын
Yes yes yes. Thank you bro please continue this tutorial☺👍
@missionaryfamily1897
@missionaryfamily1897 4 жыл бұрын
Man I cannot believe it you're such a good teacher
@nirmalpandey600
@nirmalpandey600 4 жыл бұрын
Kudos to your dedication brother.I learn a ample concept from you.Love You from Nepal!
@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 3 жыл бұрын
THANK YOU omg you saved me
@mirrormirage0
@mirrormirage0 5 жыл бұрын
pure awesomeness..... The best explanation on django channels by far.
@fadyghalayiny1920
@fadyghalayiny1920 3 жыл бұрын
great course as usual can you please make a small video how to upgrade project from channels 2 to channels 3
@FillerWorld
@FillerWorld 3 жыл бұрын
This content is so dope, keep moving! Do not stop!
@radosawskabania1529
@radosawskabania1529 3 жыл бұрын
Saved me a lot of headaches, appreciate your effort cfe !
@mugumyakevin8696
@mugumyakevin8696 4 жыл бұрын
Fantasticcccc👌👌. This is so well articulated and clear. Respect to you and humbled for this content man.
@Felipedotcom
@Felipedotcom 5 жыл бұрын
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!
@medoabdin480
@medoabdin480 2 жыл бұрын
you are really amazing bro. actually, you have a nice illustration to simplify the idea, thanks a lot
@jurajnajiva
@jurajnajiva 4 жыл бұрын
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)
@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.
@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.
@chaudharypraveen98
@chaudharypraveen98 3 жыл бұрын
Amazing sir.. Thanks for making such kind of videos. Your's videos are really helpful.
@CodingEntrepreneurs
@CodingEntrepreneurs 3 жыл бұрын
Thank you
@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.
@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.
@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??
@faizanfareed9076
@faizanfareed9076 5 жыл бұрын
Best tutorial for beginner's
@vinayarora7334
@vinayarora7334 4 жыл бұрын
Wow you're awesome. You keep on learning and teaching cool things. Awesome.
@akashsahoo745
@akashsahoo745 3 жыл бұрын
justin you are a rockstar you made my life easy
@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
@sayansanyal8259
@sayansanyal8259 6 жыл бұрын
Hey there...I loved the video and a learnt a lot about the channels and redis. I was wondering what changes do I need to make in order to make the chatroom available to multiple users, more specifically I want something like that of a group chat where the users connected to a group will recieve their messages in real time. Any suggestions from your side would be very helpful. Thanks in advance ❤
@laubernardini
@laubernardini 4 жыл бұрын
AWESOME! Great video, thanks!! Do you know if it is possible to get database updates to show it in realtime??
@AjaySharma-jv6qn
@AjaySharma-jv6qn 2 жыл бұрын
really helpful, thanks for your work, Many likes from India :)
@Realzingx
@Realzingx 4 жыл бұрын
Great tutorial as always, how would you go about implementing a multi window chat system? facebook like.
@lamepic
@lamepic 2 жыл бұрын
Great video. Will this work with drf? if not please make a tutorial on django channels and drf.
@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??
@rohitashwanigam
@rohitashwanigam 6 жыл бұрын
Hey, awesome tutorial. A much needed one. I have got a doubt though. If I put a await asyncio.sleep(10) in receive, it is still blocking the next request, that I send. Is this setup really asynchronous ?
@chance2480
@chance2480 5 жыл бұрын
Looking swole brotha. Nice video thanks :)
@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.
@mzgz4216
@mzgz4216 6 жыл бұрын
man that was owesome , many thanks to you
@CodingEntrepreneurs
@CodingEntrepreneurs 6 жыл бұрын
You're welcome!
@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
@89elmonster
@89elmonster 5 жыл бұрын
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!
@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
@ivanabregu1
@ivanabregu1 5 жыл бұрын
Thanks Justin for another amazing work!
@dmbmagicfan
@dmbmagicfan 6 жыл бұрын
Awesome tutorial! Is there any way to keep track of “who is connected right now”? django-channels-presence seemed promising, but it isn't compatible with Channels 2.
@kaiserkonok
@kaiserkonok 2 жыл бұрын
Thank you so much. It was awesome🔥🔥🔥
@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.
@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
@rajkumargosavi2890
@rajkumargosavi2890 6 жыл бұрын
Great video. Must needed django-channels tutorial
@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
@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
@helloworld12354
@helloworld12354 6 жыл бұрын
Always had this one query mate! Why don't you use pycharm and always sublime text. Please express your views on this!
@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
@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
@boiyedove
@boiyedove 5 жыл бұрын
Hello Justin. Please do you have any guide on how to deploy django channels on webfaction?
@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
@ursolusproductions7188
@ursolusproductions7188 4 жыл бұрын
where do you include broadcast_msg_to_chat??????
@adammaulana6116
@adammaulana6116 4 жыл бұрын
Hey mate, thanks for being kind :D
@vitaly7491
@vitaly7491 6 жыл бұрын
It's very important theme. Thank you.
@noraxu1439
@noraxu1439 4 жыл бұрын
Great tutorial! Thank you!
@BeattapeFactory
@BeattapeFactory 3 жыл бұрын
youre amazing man
@harshitsantosh825
@harshitsantosh825 4 жыл бұрын
Amazing video. The best video for Django channels. I had a doubt. Can we integrate WEBRTC with Django channels to create a video calling app?
@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
@rafsananwar3308
@rafsananwar3308 3 жыл бұрын
@@amruthap6334 redis do not have windows support, try linux instead
@taihatranduc8613
@taihatranduc8613 4 жыл бұрын
thank you. thanking for making this video
@real-ethan
@real-ethan 6 жыл бұрын
This is fucking awesome. Thank u so much!!
@strangeprogrammer5253
@strangeprogrammer5253 6 жыл бұрын
Nice, continue !!!
@piotrchabinka364
@piotrchabinka364 6 жыл бұрын
Yup, that was the best tutorial I've seen. I have a question though. I've noticed that you didn't really care about CSRF token. Could you tell why?
@mohamadsajedi5857
@mohamadsajedi5857 4 жыл бұрын
hello my friend... first of all thank u for your video this was really good and helped me so much. i have a question! i want to setup an online chat system for my store website. Do you think I use node js or Python? Thanks y friend.
@CodingEntrepreneurs
@CodingEntrepreneurs 4 жыл бұрын
Either. Both work well
@amruthap6334
@amruthap6334 4 жыл бұрын
@@CodingEntrepreneurs 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
@boiyedove
@boiyedove 5 жыл бұрын
Also what's the difference between using ReconnectingWebsocket and webSocketBridge?
@williyjohn1091
@williyjohn1091 5 жыл бұрын
Please i would love to see the tutorial of how you created the chat form. Please share the link so as i can follow along with great tutorial
@jakhongiralikhanov8309
@jakhongiralikhanov8309 3 жыл бұрын
@CodingEntrepreneurs How can I connect WebSocket with Django Project built-in Docker?
@sahilasopa
@sahilasopa 3 жыл бұрын
you are AWESOME
@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.
@smokedLambTitties
@smokedLambTitties 5 жыл бұрын
Best Channels tutorial on the web. Good Job Guys, keep it up!
@budescode_academy
@budescode_academy 4 жыл бұрын
thanks alot man I really appreciate this.
@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
@amirmubarak8967
@amirmubarak8967 5 жыл бұрын
great explanation on django channels. django + no-sql integration will be now on high demand. please make for it :)
@tamirtsogbayar3912
@tamirtsogbayar3912 5 жыл бұрын
I love this lesson so much
@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??
@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??
@AnnSmesh
@AnnSmesh 5 жыл бұрын
Thank's for this detailed tutorial :) it's very usefull and helped me to understand all)
@shahabmalekzade4794
@shahabmalekzade4794 4 жыл бұрын
You are my hero bro 🌹🌹🌹
@mufidrazmin8929
@mufidrazmin8929 5 жыл бұрын
Great video. Pleaseake an indepth video of django signals, celery, memcaching etc
@kiranv6495
@kiranv6495 4 жыл бұрын
Great Tutorial. Thank you so much :)
@saitaro
@saitaro 5 жыл бұрын
Thanks mate, that was useful and interesting
@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.
@franyerverjel
@franyerverjel 5 жыл бұрын
Awesome men! thank you!
@JonhatanDavidFajardoPortillo
@JonhatanDavidFajardoPortillo 6 жыл бұрын
Gracias maestro! I have a question how send a message to all subscribers from a view or model ? broadcast_msg_to_chat(msg, group_name=self.room_group_name, user='admin') ???
@fathibensari995
@fathibensari995 4 жыл бұрын
best teacher ever
@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?
@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
@VitaminCode
@VitaminCode 4 жыл бұрын
Can you commentize your django project on github? Please we all will have better understanding with that.
@daveholly4010
@daveholly4010 6 жыл бұрын
Fantastic video! Thanks! Wondering how I can use this to connect to an existing chat (telegram) to monitor messages being displayed there? For example, I want to create a separate webpage that will display a message when a specific user logs into the chat room.
@CodingEntrepreneurs
@CodingEntrepreneurs 6 жыл бұрын
Thanks. So you can create another consumer for this data, have your chat consumer send data to the other consumer that would do these kinds of updates (logs) that are user facing. Connecting to telegram would require api access and you’d have to use asyncio to await results from the api requests much like what we do with the database
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 510 М.
А что бы ты сделал? @LimbLossBoss
00:17
История одного вокалиста
Рет қаралды 8 МЛН
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
火影忍者一家
Рет қаралды 124 МЛН
Don't Use Websockets (Until You Try This…)
6:46
Code With Ryan
Рет қаралды 311 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Новый CSS! 2024
18:06
Как пройти в IT?
Рет қаралды 21 М.
Why does JavaScript's fetch make me wait TWICE?
6:23
Tom on the Internet
Рет қаралды 169 М.
All useEffect Mistakes Every Junior React Developer Makes
22:23
SQLc is the perfect tool for those who don't like ORMs
28:11
Dreams of Code
Рет қаралды 42 М.
Django + Chart.js // Learn to intergrate Chart.js with Django
26:45
CodingEntrepreneurs
Рет қаралды 231 М.
JavaScript Visualized - Promise Execution
8:42
Lydia Hallie
Рет қаралды 166 М.