Django and HTMX #21 - WebSocket Notifications with the HTMX WebSocket Extension and django-channels

  Рет қаралды 20,423

BugBytes

BugBytes

Күн бұрын

Пікірлер
@abbaskareem5281
@abbaskareem5281 2 жыл бұрын
Hello sir, I hope this message finds you well. I am an avid viewer of your channel and have learned a great deal from your tutorials on Django and the Django htmx series. I was particularly impressed by your coverage of the basics and intermediate topics and would love to see more advanced content on this subject. It would be amazing if you could consider starting a new series on advanced topics in the Django Rest Framework for example web-socket in DRF. I believe this would not only benefit myself but also your other viewers who are looking to take their skills to the next level. Your clear and concise teaching styler makes it easy for people like me to understand complex topics, and I have no doubt that a series on advanced Django Rest Framework topics would be incredibly valuable. Thank you for all the hard work you put into creating quality content for your viewers. I am truly grateful for all the knowledge you have imparted thus far.
@peterevance
@peterevance 2 жыл бұрын
Indeed, Bug bytes is a gem in the django community!
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thank you both! Much appreciated. DRF is definitely on my list of things to do, so it will happen - hopefully in summer I think!
@haroldpepete
@haroldpepete Жыл бұрын
i'm rails lover-developer, but i think django is a interesting framework, i have saw a lot of videos about it, and django seems rails, you have a new subscriber
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot for subscribing! Rails is cool too!
@krystian-magdziarz
@krystian-magdziarz Жыл бұрын
Your videos are one of the best in django niche.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot Krystian! Glad to hear that! Thanks for the support.
@vincentrandon8124
@vincentrandon8124 2 жыл бұрын
Amazing! I've been waiting for a tutorial like this for ages. Thanks!
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Great, hope it was useful! Thanks.
@FGvelo
@FGvelo Жыл бұрын
With you around ... have got no issue with django Thanks for all you do boss man
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot man! Glad you like the content.
@abbas9257
@abbas9257 2 ай бұрын
Best Django channel ever!
@bugbytes3923
@bugbytes3923 2 ай бұрын
@@abbas9257 thanks so much for the kind words!
@sultanal-otaibi6179
@sultanal-otaibi6179 2 жыл бұрын
Rarely do you see such great topics and such a brilliant presentation. Thanks!
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thanks very much, I appreciate that!
@melipon3
@melipon3 Жыл бұрын
Really clear video, thanks. I'm not usually a fan of video how-to's; I prefer written guides but this was very succinct and useful. I'm using HTMX for the first time in my projects and it's exciting to see how web sockets can be used.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot - I'm glad the video was helpful! Best of luck with your HTMX journey.
@FGvelo
@FGvelo Жыл бұрын
@@bugbytes3923 am gabriel from nigeria... just want you to know that you are my hero .. just know that
@bugbytes3923
@bugbytes3923 Жыл бұрын
@@FGvelo Thanks a lot! :)
@dmitrymikhailovnicepianomu8688
@dmitrymikhailovnicepianomu8688 Жыл бұрын
Thank you. I guess how many times I am going to rewatch this tutorial. Great job.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot man, and thanks for watching!
@gurjika
@gurjika 10 ай бұрын
Thank you for these amazing videos. I also really enjoyed your ORM videos. I hope you will make some more tutorials for django channels as well ❤
@bugbytes3923
@bugbytes3923 10 ай бұрын
Hey, thanks a lot for the comment, really glad to hear it! Will do a django channels course soon!
@mr_don_key
@mr_don_key 8 ай бұрын
Very nice tutorial (and tutorials on the rest of this youtube channel). 🙂 This websockets with htmx was exactly what i wanted to know for my own project. thanks! Keep it up!
@DarshModi-il5et
@DarshModi-il5et Жыл бұрын
Really good presentation with live coding. Thank you for making such a good video.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you very much, and thanks for watching!
@hazadus
@hazadus Жыл бұрын
Thanks a lot for this super detailed video on the complex and very interesting topic! Keep up the good work! Instantly subscribed.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot for subscribing! And thank you for watching, I'll do some more websocket/channels stuff soon!
@hazadus
@hazadus Жыл бұрын
@@bugbytes3923 It would be great!
@fernandtape9363
@fernandtape9363 Жыл бұрын
Websockets really well explained. I'm looking forward for the developpement of a full featured websocket application.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot! I'll get on this one soon!
@antonioinochi9170
@antonioinochi9170 2 жыл бұрын
Tanks for all these video, there are some probably to see a video about how to set and manage cookies with django
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thank you! Some stuff on sessions and cookies is in the pipeline!
@Bartburger02
@Bartburger02 2 жыл бұрын
🙌 another great tutorial, thank you!
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thanks very much!
@khunjohn1054
@khunjohn1054 2 жыл бұрын
As usual, this was awesome. Wonder who this would have looked with hyperscript and its socket function and or together with HTMX.
@bugbytes3923
@bugbytes3923 2 жыл бұрын
I'll need to look into that!
@developer-pf2fl
@developer-pf2fl 2 жыл бұрын
Thankyou for this amazing tutorial .
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thanks a lot!
@raffritter6766
@raffritter6766 2 жыл бұрын
Very interesting video, I appreceate your time
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thanks a lot!
Жыл бұрын
Great content!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you!
@mahmoudabdelaziz8940
@mahmoudabdelaziz8940 2 жыл бұрын
Great and to the point as usual
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thanks a lot! Glad it was useful. And I will do!
@ChinseokLee
@ChinseokLee 2 жыл бұрын
Really AWESOME contents ~ !!! 👍
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thank you! Much appreciated
@JustinSpryce
@JustinSpryce 2 жыл бұрын
Great Lesson sir, learnt alot
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thank you as ever!
@mariocortes2670
@mariocortes2670 Жыл бұрын
Great video! thanks
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot!
@АлексейБочкарев-ь6х
@АлексейБочкарев-ь6х Жыл бұрын
Спасибо за видео бро, я не взял себе твой код полностью, но ты подал отличную идею реализации уведомлений, как раз сейчас работаю над такой задачей. Так держать, с меня лайк и подписка!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Спасибо! :)
@jacobgoldenart
@jacobgoldenart Жыл бұрын
Thanks. I love the details in your videos. Request: Could you do a FastAPI/HTMX with Websockets video? I'd love to see a cool example of making a request to the FastAPI endpoint from an HTMX page then streaming back the content from the server to the html page. Thanks!
@MayasMess
@MayasMess 2 жыл бұрын
Thanks for the video. Did you hear about Flet ? Are you going to do a video about it ? keep up the good work
@bugbytes3923
@bugbytes3923 2 жыл бұрын
I've not used Flet yet. Will definitely look into it though - any app ideas, feel free to let me know ;)
@ProfeDuilio
@ProfeDuilio 2 жыл бұрын
Excellent !
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Many thanks!
@aashayamballi
@aashayamballi 2 жыл бұрын
Thank you 👍🏾
@bugbytes3923
@bugbytes3923 2 жыл бұрын
You're welcome! Many thanks!
@AliHassan-wc6nb
@AliHassan-wc6nb 2 жыл бұрын
Brilliant!
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thank you!
@MagnusAnand
@MagnusAnand 2 жыл бұрын
Cool video! You rock :) If you don't mind, I continue giving you video ideas: Where to put Business logic (models, managers, services...). Which one is better, why? What do you prefer? 🙂
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thanks a lot! And thanks for your suggestions - this is a very interesting one, so I'll add it to my list. Very opinionated topic though ... 😁
@MagnusAnand
@MagnusAnand 2 жыл бұрын
@@bugbytes3923 It is indeed 🙂
@Peterstavrou
@Peterstavrou Жыл бұрын
Another excellent video! Just fyi you may want to update the git with another tw-elements cdn link as the one in there can't be found.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks Peter! I'll update the repo 👍
@juanbetancourt5106
@juanbetancourt5106 Жыл бұрын
Thank you good Sir.
@fidelischukwunyere3142
@fidelischukwunyere3142 3 ай бұрын
Thanks for this clear tutorial. But I just noticed that for some reason, htmx doesn't pick up the boostrap stylings I've when rendering the partial. Until after a full page reload.
@ahmedhashim5043
@ahmedhashim5043 2 жыл бұрын
Thats great thanks you
@bugbytes3923
@bugbytes3923 2 жыл бұрын
You're welcome!
@101kawsar
@101kawsar 2 жыл бұрын
Cool!! 😳
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thanks!
@frameff9073
@frameff9073 2 жыл бұрын
Good thank you
@bugbytes3923
@bugbytes3923 2 жыл бұрын
You're welcome!
@knowislamproject
@knowislamproject Жыл бұрын
Thank you...the dropdown is not working for me. Is there something I need to install for tailswind to work?
@ntwarioscar
@ntwarioscar 10 ай бұрын
same to me I don't know what happened
@fadyghalayiny2825
@fadyghalayiny2825 2 жыл бұрын
finally the most waited tutorial really thanks but the source code is not available
@bugbytes3923
@bugbytes3923 2 жыл бұрын
My apologies - I've made the repository public now: github.com/bugbytes-io/django-htmx-websockets
@khalidseflan301
@khalidseflan301 Жыл бұрын
Thanks for sharing this video. who to keep the list of notifications, since the user refreshes the page all notifications will be gone.
@rushabhshah12200
@rushabhshah12200 Жыл бұрын
I am doing same process as you are doing but I am not getting output on the terminal like of connect,disconnect and that specific.. in memory thing.
@MazingerZ-Koji
@MazingerZ-Koji Жыл бұрын
Are we using channels for notifications with external applications? Could we do the same with signals only, if we do not need to notify externally?
@ajeeshas1203
@ajeeshas1203 Жыл бұрын
Hi @bugbites, Could you please do a video on htmx sse with django?
@philippemele5334
@philippemele5334 Жыл бұрын
Trying to adapt the code to a personal project. I stumble on the front end rendering. How do you create the relationship from "partials/notification.html" to your navbar.html? It seems you are referring to the id of the divs (in partials and navbar). This connection is not happening with me. The only alternative I found is to use {%include %} but you dont seem to use it in your code... and {%include %} seem to actually render the notification template even if no user is created. The only difference with your code is that I am not using Tailwind. But this shouldnt impact the rendering. or could it? (great stuff by the way!)
@ioandraghici3538
@ioandraghici3538 5 ай бұрын
Is it possible to send a custom HTMX trigger via Websockets?
@alexdin1565
@alexdin1565 10 ай бұрын
please if you can make a video on how we can deploy this app on server it will be very helpful
@bugbytes3923
@bugbytes3923 10 ай бұрын
There are some deployment videos in the pipeline, so hopefully soon! Thanks for the suggestion.
@Huraira_idrees
@Huraira_idrees Жыл бұрын
I am getting error, not found /ws/notifications also no messages are sent, my code is exact copy of yours, can you please help me?
@davidbilidam953
@davidbilidam953 Жыл бұрын
Please how much will it cost to add Django real chat and notifications to my project
@eliotnavarro8443
@eliotnavarro8443 Жыл бұрын
why in the github repo the app is set as an WSGI¿?
@RitvikChauhan-z3z
@RitvikChauhan-z3z Жыл бұрын
there is no login page and signup page
@bugbytes3923
@bugbytes3923 Жыл бұрын
To keep the video a bit more concise, this is not included.
@RitvikChauhan-z3z
@RitvikChauhan-z3z Жыл бұрын
@@bugbytes3923 please change in ur github i want that also soo that i am able to that notification part
@Tungdang-tv7sd
@Tungdang-tv7sd 6 күн бұрын
how to body tabele htmx
@logan76able
@logan76able 2 жыл бұрын
le dejo mis dieses
@halimahussein9490
@halimahussein9490 Жыл бұрын
can i hear notification sound
@bugbytes3923
@bugbytes3923 Жыл бұрын
You would have to extend the code from the video, but that is possible, yes. On the client-side, when the WebSocket message is received, you could trigger an action.
@tochimclaren
@tochimclaren 5 ай бұрын
Every time some covers Django channels. They gloss over it quickly. Making it difficult to understand what they are even saying. It's so annoying it's like they show you look at this cool stuff I made and that's just it. Terrible terrible tutor you are.
@bugbytes3923
@bugbytes3923 5 ай бұрын
@@tochimclaren sorry to hear that. I suggest checking out the Django-channels docs before you watch videos, if you don’t understand things.
@tochimclaren
@tochimclaren 5 ай бұрын
@@bugbytes3923 Yeah that's what I'm doing right now. Just saying the mind of lots of your subscribers. As a tutor, you TEACH. That's the most important part. The teaching.
@bugbytes3923
@bugbytes3923 5 ай бұрын
@@tochimclaren There are videos that are not designed for beginners though... we cannot always focus on fundamentals in every video. The feedback for this video has been entirely positive, except for your comment. I hope the docs can help though!
@tochimclaren
@tochimclaren 5 ай бұрын
@@bugbytes3923 👍
Build Real Time Notification With Django Channels In 5 Minutes
6:02
Beyond Database
Рет қаралды 53 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
HTMX and the View Transitions API
20:21
BugBytes
Рет қаралды 16 М.
Django Channels & WebSockets Oversimplified
16:35
Dennis Ivy
Рет қаралды 150 М.
From React To HTMX
40:01
ThePrimeTime
Рет қаралды 348 М.
Learn Django - Build an Asynchronous Chatroom with Django and Channels
1:31:27
Django & HTMX - Dynamic Form Creation and Submission
24:36
BugBytes
Рет қаралды 33 М.
Django Channels Rest Framework + WebSockets | Django School | Михаил Омельченко
1:28:38
Михаил Омельченко | Django School
Рет қаралды 28 М.
Jeremy McPeak's Larabits - HTMX May Be All You Need
15:22
Laracasts
Рет қаралды 12 М.
What if all the world's biggest problems have the same solution?
24:52
Don't Use Websockets (Until You Try This…)
6:46
Code With Ryan
Рет қаралды 331 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН