Python Django Realtime Chat Project - Full Course

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 พ.ย. 2024

ความคิดเห็น • 399

  • @RioTiger
    @RioTiger ปีที่แล้ว +15

    Really my lifesaver, please keep doing contents like this. The clearest and most structured tutorials about django and python on Earth I could say.

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Thanks 😁 thats Nice of you to say 😁

    • @suiiicr77777
      @suiiicr77777 ปีที่แล้ว +1

      @@CodeWithStein 😘

    • @djangodev3191
      @djangodev3191 ปีที่แล้ว +1

      @@CodeWithStein In this lesson, are you making an app for group chats or for two people to communicate?

    • @CodeWithStein
      @CodeWithStein  9 หลายเดือนก่อน

      For groups 👍🏻

  • @nnanyereugoemmanuel8327
    @nnanyereugoemmanuel8327 2 ปีที่แล้ว +33

    This is absolutely amazing... Funny how you are good at styling and getting a neat work... Most of us backend developers don't like being stressed with CSS😅.

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว +4

      Thanks 😁😁 haha, Nice of you to say 😁 I think my design is horrible 😝 but I try my best to make the videos a little bit more presentable 👍🏻

    • @nnanyereugoemmanuel8327
      @nnanyereugoemmanuel8327 2 ปีที่แล้ว +2

      @@CodeWithStein haha... The design is supper cool... And your colour selection is amazing ... It's a colour that aids brain assimilation.
      Please grant me this favour. I want to pay a token in order to add you to my network. Please 🙏. I like having people like you around me.

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว

      Thank you 😁 check out the description for the video, there is a link to my paypal 😉

    • @iinora2345
      @iinora2345 2 ปีที่แล้ว +1

      The hate for CSS is real. I feel it doesn't allow me talk to the computer as much

    • @nocopyrightgameplaystockvi231
      @nocopyrightgameplaystockvi231 ปีที่แล้ว +1

      That's the magic of Tailwind. I generally use UI5 framework for front end stuff at work, where there is not styling at all. You just use Controls as they are already there to work simple without any need for styling or responsivenes.

  • @josejan658
    @josejan658 ปีที่แล้ว +7

    Those who have problems with the websocket connection try using the version of channels==3.0.5
    That solved the problem for me

    • @oussama-jabrane
      @oussama-jabrane ปีที่แล้ว +1

      Thanks brother. I spent 3 hours trying to figure out what's wrong 😅

    • @raullader4
      @raullader4 ปีที่แล้ว

      Same haha, I was wondering what I'm doing wrong. 😄@@oussama-jabrane

    • @raullader4
      @raullader4 ปีที่แล้ว

      thankss

    • @harishsanthosh3861
      @harishsanthosh3861 ปีที่แล้ว

      Thanks ❤

    • @LoadedFries-np3jq
      @LoadedFries-np3jq ปีที่แล้ว +1

      Ty!!

  • @justme-dz1wy
    @justme-dz1wy ปีที่แล้ว +10

    Update to the chatrooms project.
    1) python -m pip install -U 'channels[daphne]'
    2) listing 'daphne' on top of installed apps on the settings file.
    This will help in taking care of chat functionality if it is not working.

    • @chrisildabre4141
      @chrisildabre4141 ปีที่แล้ว

      Actually mine is not working even after installing this. Everything is working fine apart from the part where I send msg and it is not displayed above in chat box.

    • @chrisildabre4141
      @chrisildabre4141 ปีที่แล้ว

      Is there any way I can contact u for help if ur open for it.

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว +1

      That is correct 👍🏻 i do this in one of my newer videos 😁

    • @trippingwithcrujo7708
      @trippingwithcrujo7708 9 หลายเดือนก่อน +1

      if it's not too much work, would it be possible to put an annotation in your video regarding this issue? perhaps even redirecting to the updated video so we know how to fix this problem@@CodeWithStein

    • @CodeWithStein
      @CodeWithStein  9 หลายเดือนก่อน

      @trippingwithcrujo7708 will try to add that yes. Here is the newer video btw: Django Channels Real-time Communication Project: Building a Chat Website
      th-cam.com/video/9e7CTR2Ya4Y/w-d-xo.html

  • @stachcode9085
    @stachcode9085 ปีที่แล้ว +5

    U just got yourself a new subscriber. I really appreciate some quality content .keep up the good work man

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Thanks 😁 check out my newest video as well if you want to learn more channels 👍🏻

  • @dawmro
    @dawmro ปีที่แล้ว +15

    For anyone looking for a way to display 25 newest messages in room (instead of 25 oldest), you can do it like that:
    messages = Message.objects.filter(room=room).order_by('-date_added')[0:25][::-1]

    • @AswinC2
      @AswinC2 7 หลายเดือนก่อน +1

      Exactly what I was looking for!

    • @JacobSean-iy3tl
      @JacobSean-iy3tl 6 หลายเดือนก่อน

      if the site scales up to have many rooms you may also want to add a search functionality for finding rooms

  • @diff008
    @diff008 ปีที่แล้ว +4

    for anyone looking if you have a problem connecting .. this tutorial needs to be updated with
    1) python -m pip install -U 'channels[daphne]'
    2) listing 'daphne' on top of installed apps ... channels can also be listed in there...

    • @trippingwithcrujo7708
      @trippingwithcrujo7708 9 หลายเดือนก่อน +1

      are these the only changes you need to do? I did exactly that and I get an error

    • @CodeWithStein
      @CodeWithStein  9 หลายเดือนก่อน

      @trippingwithcrujo7708 no its a Brand new video where i implement web sockets. You need to do a few small thing to Get it to work. Settings+changes in the asgi file i think.

    • @trippingwithcrujo7708
      @trippingwithcrujo7708 9 หลายเดือนก่อน +1

      ​@@CodeWithStein thanks a lot for this indication and the previous link to your video! I'll try to search through the important stuff to get it to work. Finishing a course on django right now and have to implement an app that has chat functionalities to the project :p
      We're gonna present it on Thursday and your video has definitely helped

    • @trippingwithcrujo7708
      @trippingwithcrujo7708 9 หลายเดือนก่อน

      I just got it to work. Had a bad import so I took longer than expected to figure it out. I believe you are right - settings and asgi.py changes made it work. I mainly used the code from your repo too, it was enough. Thanks a lot man. I was nearing a meltdown.@@CodeWithStein

  • @FalseHuman
    @FalseHuman ปีที่แล้ว +4

    Thanks for the video. I had to install daphne in order for the WebSocket transmission to work

    • @anishbista92
      @anishbista92 ปีที่แล้ว +2

      Thanks man you helped me too

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว +1

      That is correct 😁

    • @AshMendes-s4n
      @AshMendes-s4n 10 หลายเดือนก่อน

      Hey could you please explain

  • @birigu
    @birigu ปีที่แล้ว +4

    This is the best of the tutorials I found which is great teaching as well as relevant to today's updates of the django and channel. Thank you so much for this amazing tutorial.

  • @exocom2
    @exocom2 2 ปีที่แล้ว +2

    Many thanks for the tutorial. It was super helpful!! A little hint for the viewers: I am almost sure, you have to rename 'messages' (that is passed from the view to the HTML) to something else, otherwise it interferes with the messages framework.

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว

      Hey, you're welcome :-D Ah, that is a good suggestion ;-)

  • @swishers2807
    @swishers2807 11 หลายเดือนก่อน +1

    bro, your video helped me understand everything more or less

  • @KamTechTravelTech
    @KamTechTravelTech 2 ปีที่แล้ว +1

    I built it, it was an amzing journeyThank you Mr.

  • @AkiraShocking
    @AkiraShocking ปีที่แล้ว +1

    Thank you sooo muuch ! I needed to use daphne channel with official documentation but It''s really useful !

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Great 😁 i have a newer video where I use daphne also ☺️

  • @akhilkore4537
    @akhilkore4537 ปีที่แล้ว +3

    Nice explanation, i'm from india

  • @tanjimashraf803
    @tanjimashraf803 2 ปีที่แล้ว +2

    An amazing content, with your content & previous knowledge, I'm about to deploy my chat-server to the colud. Thank you ❤

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Great 😁😁

    • @tanjimashraf803
      @tanjimashraf803 ปีที่แล้ว +1

      @@CodeWithStein Successfully deployed that ✨😊

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Nice 😁

    • @LongSensei
      @LongSensei ปีที่แล้ว

      ​ @tanjim ashraf how do you deploy chat-sever? pls i wanna know it. Sorry cause i speak english very bad. Thank u and Stein!!

  • @soulfibre6695
    @soulfibre6695 8 หลายเดือนก่อน +1

    Awesome tut
    Thank you very much, sir!

  • @JOROSSOCAMPO-v2u
    @JOROSSOCAMPO-v2u 11 หลายเดือนก่อน +1

    Good Afternoon Sir!!

  • @8NLD8
    @8NLD8 11 หลายเดือนก่อน +2

    thanks a lot ur videos are great!, as soon as i have some money to spare ill join ur patreon !

    • @CodeWithStein
      @CodeWithStein  11 หลายเดือนก่อน

      You're welcome :-D Nice, glad to hear that :-D

  • @greatest5902
    @greatest5902 10 หลายเดือนก่อน +1

    great tutorial, thanks!

    • @CodeWithStein
      @CodeWithStein  10 หลายเดือนก่อน

      Glad you liked it :-D

  • @michaelshevelin2234
    @michaelshevelin2234 2 หลายเดือนก่อน +1

    Thank you for the video! How would you modify the code in order to process the message(analyze, modify, create additional objects)? Thnx in advance!

    • @CodeWithStein
      @CodeWithStein  2 หลายเดือนก่อน

      Hey :-) You can either do it in the code where it's stored in the database, or you can do it in a override method in the database model.

  • @JOROSSOCAMPO-v2u
    @JOROSSOCAMPO-v2u 11 หลายเดือนก่อน +1

    GOOD AFTERNOON SIR
    !

  • @Th3Devi1InMe
    @Th3Devi1InMe ปีที่แล้ว +1

    Hey Stein, will you do a video on deploying a project like this? I've been struggling for 2 days and see a lot of people struggling with the exact same issue. Thank you

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว +1

      Maybe, if so it would be to a ubuntu server or very similar 👍🏻 i think i even do it in my newest videos 😁

  • @alessandrogautieri8427
    @alessandrogautieri8427 ปีที่แล้ว +2

    I keep getting the error 'CSRF verification failed. Request aborted.", which I didn't solve by following what you did, what should I do?

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Hmm, cant remember that I got that error. Are you sure your code is identical to mine?

  • @sergeyantonov3300
    @sergeyantonov3300 ปีที่แล้ว +1

    It's amazing!!! Thank you so match!

  • @Leo-gz8us
    @Leo-gz8us ปีที่แล้ว +1

    Thank you for your work. This helped a lot

  • @JacobSean-iy3tl
    @JacobSean-iy3tl 6 หลายเดือนก่อน +1

    awesome content as always

  • @AshMendes-s4n
    @AshMendes-s4n 10 หลายเดือนก่อน +1

    This video was really helpful and amazing . Thank you so much . But when i try to submit the input in , it doesnt appear above , not sure whats missing

    • @CodeWithStein
      @CodeWithStein  10 หลายเดือนก่อน

      Hey, sounds weird. Are you sure the code is identical to mine?

  • @GevorgVardanyan
    @GevorgVardanyan 2 ปีที่แล้ว +1

    Hi Stein.
    Thank you for this nice tutorial.

  • @AyatAndTheInvisibleAllies
    @AyatAndTheInvisibleAllies ปีที่แล้ว +2

    Hello there.
    The chat room works fine on my localhost. But whenever I push it to railwayapp(free domain) it gives me an error while installing
    Twisted
    Twisted-iocsupport
    I have researched a bit om stackoverflow and they advised to delete Twisted-iocsupport from requirements.txt. i did that. Then the deployement was successful. But the chat message is not appearing on the window. Any idea whats the issue might be?

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Hey, that does not sound good.. I’m not familiar with twisted :/ are the any errors in the browsers console?

  • @adi_ch.10503
    @adi_ch.10503 3 หลายเดือนก่อน +2

    The Chats are not coming, I tried for the 3rd time, its still the aame fault. I even installed the version you used and went step after step, its still not resolved

    • @CodeWithStein
      @CodeWithStein  3 หลายเดือนก่อน

      That sounds weird. As long as you are using the same version of Django and channels as me, it should work. Are there any errors in the browser?

    • @ismaelkf
      @ismaelkf 3 หลายเดือนก่อน

      @@CodeWithStein Hello, my chats are coming but when I refresh it disappear. I tried evrything even with the help of chatgpt it doesnt work.. the error i get is : work/:107 WebSocket is already in CLOSING or CLOSED state.

  • @DonatoROable
    @DonatoROable ปีที่แล้ว +2

    pip install channels==3.0.5 if you are having problems, will configure my app again tomorrow. :)

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Or you can checkout channels/daphne's website on how to use version 4 (the current version). It's just one or two lines that will be different :-)

  • @PlagueisMKII
    @PlagueisMKII ปีที่แล้ว +1

    Great vid, but I don't get the point of converting room slug and username to json and then passing it to script block. It is the same template, just const roomName = `{{ room.slug }}` would be enough. Of course it won't work in case of refactoring script to separate file.

    • @CodeWithStein
      @CodeWithStein  8 หลายเดือนก่อน

      Hey, thanks. It's the way Django recommend us to solve this :-)

  • @fathima2770
    @fathima2770 2 ปีที่แล้ว +3

    Hi , anybody facing this issue :
    work:80 WebSocket is already in CLOSING or CLOSED state.

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว

      Hey, weird :/ are you sure you typed everything correctly?

    • @PhilKlen
      @PhilKlen 2 ปีที่แล้ว

      Having same error right now tried everything but still same

    • @styleking235
      @styleking235 ปีที่แล้ว

      @@PhilKlen bro did you solved it???

    • @groodbrood8950
      @groodbrood8950 3 หลายเดือนก่อน

      reloade it

  • @styleking235
    @styleking235 ปีที่แล้ว +2

    It shows error in site inspect WebSocket connection to ws:// server is failed 😭

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      I hope you fix it soon 👍🏻

    • @groodbrood8950
      @groodbrood8950 3 หลายเดือนก่อน

      @diff008 fixed it
      for anyone looking if you have a problem connecting .. this tutorial needs to be updated with
      1) python -m pip install -U 'channels[daphne]'
      2) listing 'daphne' on top of installed apps ... channels can also be listed in there...

  • @temirlantemirlan7430
    @temirlantemirlan7430 ปีที่แล้ว +1

    Thank you, with channels==3.0.5 works great. And it works great on local computer. But how about deploy to ubuntu? Do you have instruction? )

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Great 😁 i dont have any tutorials for that no :/

  • @mrsreekanth240
    @mrsreekanth240 ปีที่แล้ว +2

    Hi Stein is there any way to build 1 to 1 chat application without room in Django. Most of the tutorials are mainly focused on the creating chat system with chat room is there anyway? Please let me know.

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว +2

      Hey, sure thats possible. You can do it in many ways. But the easiest is probably to just follow the tutorial, and then set a limit to how many users who can join 😉

  • @jermainecogo3434
    @jermainecogo3434 2 ปีที่แล้ว +3

    hey stein amazing video but i'm having trouble at the send message part where the message i input would not appear. not really sure what's wrong

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว

      Hey, that is weird :/ are there any errors in the browsers console?

    • @muskangoyal9297
      @muskangoyal9297 ปีที่แล้ว

      i got the same issue. Did you resolve it?

    • @catastrophe4683
      @catastrophe4683 ปีที่แล้ว

      @@CodeWithStein hey, it is saying that websocket connection failed! on console log

    • @AshMendes-s4n
      @AshMendes-s4n 10 หลายเดือนก่อน

      @jermainecogo3434 did you fix it ?

  • @styleking235
    @styleking235 ปีที่แล้ว +2

    51.22 after accept shows error in aspect 😭😭 what I you do ws/work/ not found in terminal and in aspect shows onclose error 😭😭

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Did you find my code on git?

    • @styleking235
      @styleking235 ปีที่แล้ว

      @@CodeWithStein yes but no use same error

    • @styleking235
      @styleking235 ปีที่แล้ว

      My badd 😭😭

  • @cookiebrains
    @cookiebrains 11 หลายเดือนก่อน +1

    Thank you, this is very helpful

    • @CodeWithStein
      @CodeWithStein  11 หลายเดือนก่อน

      You're welcome :-D Glad I could help :-D

  • @davidmaynard2724
    @davidmaynard2724 2 ปีที่แล้ว +1

    Very nice video i've learned a lot!! Thanks! Is it possible to add groups to each rooms so only certain group can edit some specifics rooms?

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว

      Hey, Thanks 😁 yes you can, but its too much to explain here :/

  • @Antarah525
    @Antarah525 ปีที่แล้ว +1

    After I log in it doesn't redirect me to the "rooms" page, instead it redirects me to "accounts/profile/", what did I mess up?

    • @Antarah525
      @Antarah525 ปีที่แล้ว +1

      I fixed it by adding "LOGIN_REDIRECT_URL = '/rooms'", must've been somewhere in the video and I didn't notice it

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Awesome 👍🏻👍🏻

  • @NynikaSuji
    @NynikaSuji ปีที่แล้ว +1

    really thank you sir

  • @dhruvkalal9062
    @dhruvkalal9062 5 หลายเดือนก่อน +1

    why my asgi/channels development server is not starting it starting as simple server

    • @CodeWithStein
      @CodeWithStein  2 หลายเดือนก่อน

      Hmm, i do not know :/ It might be that you're using a newer version of something than me?

  • @lawaladekunle7936
    @lawaladekunle7936 ปีที่แล้ว +1

    Hi Stein, after building the chat app, messages sent doesn't reflect on the chatbox. it just disappears. how do i fix that please?

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Hey, weird. Are there any error messages?

  • @rohitbachwani798
    @rohitbachwani798 ปีที่แล้ว +1

    Hi
    Is it possible to send an automated hardcoded dummy reply to the group once a user sends a message?

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Yes it is, and I do it in one of my newer videos 👍🏻👍🏻

  • @sangeetaupadhye7439
    @sangeetaupadhye7439 8 หลายเดือนก่อน +1

    work/:90 WebSocket is already in CLOSING or CLOSED state.
    m getting this error

    • @CodeWithStein
      @CodeWithStein  8 หลายเดือนก่อน

      Hey, did you manage to fix this? You probably have a typo somewhere I will guess

    • @muhammetemingulmez
      @muhammetemingulmez 6 หลายเดือนก่อน

      @@CodeWithStein i have the same problem, could you please explain your guess?

  • @useless.production
    @useless.production ปีที่แล้ว +2

    Even after he showed us how to fix the 403: Forbidden error, I still couldn't seem to fix it. Can anyone help?

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Hey, are there any more details to the error?

  • @NynikaSuji
    @NynikaSuji ปีที่แล้ว +2

    how i connect with my backend

    • @CodeWithStein
      @CodeWithStein  11 หลายเดือนก่อน

      Just follow the tutorial and you will get to that point :-D

  • @heisenbergww2807
    @heisenbergww2807 ปีที่แล้ว +2

    Does anyone has any link to django chat app where we can also share files?

  • @rislifamili
    @rislifamili ปีที่แล้ว +1

    Thank you so much.🙏🙏

  • @facundovillar1427
    @facundovillar1427 ปีที่แล้ว +1

    Good video! I'm reaching out to you from Uruguay, and I love your content. I have a problem with the WebSocket that is not allowing me to connect the program correctly. My Python version is 3.9.13, and I'm using Channels 3.0. I have opened the ports to avoid firewall issues, but the error still persists. Greetings!

    • @shafkatkhan8490
      @shafkatkhan8490 9 หลายเดือนก่อน

      Try channels 3.0.5 that seemed to work for me.

  • @mr.anderson5393
    @mr.anderson5393 หลายเดือนก่อน

    I have a question. The section (00:41:38 Consumers) , .group_add() the second parameter, why did you pass self.room_group_name? Isn't it supposed to be self.channel_name which is something like this (specific..inmemory!fDGIrgtyMBrR) if you print(self.channel_name). I looked in the source code and the method is looking for 2 parameters group and channel.

  • @MonaliMore
    @MonaliMore ปีที่แล้ว +2

    Hello I did everything great and there’s no error but my connection is getting failed shows as “can not connect to websocket” which file may contain any error?

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Hey, weird. Probably in the consumers.py. But its hard to say without looking at your code :/

    • @MonaliMore
      @MonaliMore ปีที่แล้ว

      Great, I copied your code from GitHub so I don’t find any error but web socket still doesn’t connect, it says not found /ws/work/

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Hmm weird. Which version of Channels are you using?

    • @MonaliMore
      @MonaliMore ปีที่แล้ว

      I am using Django 3.2

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      No the channels version. Run «pip freeze» to find it. You need to install version 3.0.5 or similar 👍🏻

  • @ahmedghallab5342
    @ahmedghallab5342 ปีที่แล้ว +1

    شكرا Thanks💙

  • @bhavnaphate4501
    @bhavnaphate4501 10 หลายเดือนก่อน +4

    Also my logout page is not working

    • @CodeWithStein
      @CodeWithStein  10 หลายเดือนก่อน

      Hmm are there any errors?

    • @bhavnaphate4501
      @bhavnaphate4501 10 หลายเดือนก่อน

      @@CodeWithStein Method not Allowed(GET )://logout
      "GET /logout/ HTTP/ 1.1" 405 0

    • @shiburobert
      @shiburobert 5 หลายเดือนก่อน

      Me also

    • @MerinaFidelis
      @MerinaFidelis 5 หลายเดือนก่อน +1

      The recent version of Django from version 4.0 to date changed the logout functionality instead of GET now uses POST

  • @Ayush-fe9kz
    @Ayush-fe9kz 2 ปีที่แล้ว +1

    when ever I'm trying to send a message, 2 messages are send simultaneously , one which I send the other one is empty string how should I solve this ?

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว

      Hey, that sounds weird. I haven't experienced this. Are there any error messages?

  • @styleking235
    @styleking235 ปีที่แล้ว +1

    Thank you it's solved I start to program😢

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      So its working now?

    • @styleking235
      @styleking235 ปีที่แล้ว

      @@CodeWithStein yes 😛

    • @styleking235
      @styleking235 ปีที่แล้ว

      @@CodeWithStein I restart a new application

  • @pietraderdetective8953
    @pietraderdetective8953 ปีที่แล้ว +1

    Hey great tutorial you got here!
    I want to ask if it's okay to recreate this app in Flask?
    I noticed Flask's weakness in async..but I have only create Flask apps and have never experimented with Django before.
    Cheers and thanks for the awesome tutorial!

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Hey, Thanks ☺️ i haven’t worked with flask for a long time. So i dont know if its possible, but if it is, then feel free to do what you want 😁

    • @hisokajoker7991
      @hisokajoker7991 ปีที่แล้ว

      ​@@CodeWithStein Hi Stein, I have such a problem, when I send it disappears, everything seems to be like yours, maybe this is because it was one year ago Please help me

  • @sanaullahlabib
    @sanaullahlabib 6 หลายเดือนก่อน +1

    please help me to find the base,html and front.html?

    • @CodeWithStein
      @CodeWithStein  6 หลายเดือนก่อน

      Hey, there is a link to them in the description ☺️

  • @JOROSSOCAMPO-v2u
    @JOROSSOCAMPO-v2u 11 หลายเดือนก่อน +1

    Good morning and a merry Christmas!!!! I'm experiencing a mistake here, the maximum messages that a room can take is only 25 messages, how can I fix this?

    • @JOROSSOCAMPO-v2u
      @JOROSSOCAMPO-v2u 11 หลายเดือนก่อน

      oh nevermind, i think i found the solution

    • @CodeWithStein
      @CodeWithStein  10 หลายเดือนก่อน +1

      Nice 😁

  • @stefanoliverio8717
    @stefanoliverio8717 ปีที่แล้ว +1

    hello, if I would like to incorporate and send files so that other members of the room can view and download them, would it be possible?

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Hey, that is possible yes! But it takes a bit of work, much more than I can write here in a comment :/

  • @fndsaad
    @fndsaad ปีที่แล้ว +1

    Sir, there is a error in my code when I am trying to make this app by following your this video. I badly need your help please.

    • @CodeWithStein
      @CodeWithStein  9 หลายเดือนก่อน

      What was the error?

  • @islomavezov-pk4eb
    @islomavezov-pk4eb 7 หลายเดือนก่อน +1

    hello stein, why logout doesn't work, i check all your code from my code, everything is solid but didn't work.

    • @CodeWithStein
      @CodeWithStein  7 หลายเดือนก่อน +1

      Hey, Django did some changes when Django 5.0 came out. So the old way of logging out does not work anymore. You need to replace the log out link with a post form, or use javascript :/

    • @ismaelkf
      @ismaelkf 3 หลายเดือนก่อน +1

      {% csrf_token %}
      logout
      put this in your base.html

    • @islomavezov-pk4eb
      @islomavezov-pk4eb 2 หลายเดือนก่อน

      @@ismaelkf thanks bro, anyway did you get job??

    • @islomavezov-pk4eb
      @islomavezov-pk4eb 2 หลายเดือนก่อน

      @@CodeWithStein thank you

  • @ayeezaa_me
    @ayeezaa_me 4 หลายเดือนก่อน +1

    Please help me to see the django administration

    • @CodeWithStein
      @CodeWithStein  2 หลายเดือนก่อน

      Hey, why don't you see that? It should be available at /admin/

  • @styleking235
    @styleking235 ปีที่แล้ว +2

    Stein please put a room.html code full please🙏😖

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      You can find all of the code here: github.com/SteinOveHelset/djangochat 👍🏻

  • @adi_ch.10503
    @adi_ch.10503 3 หลายเดือนก่อน +2

    The messages are not shown to me

    • @CodeWithStein
      @CodeWithStein  3 หลายเดือนก่อน

      I will answer your other comment 😉

  • @gio73808
    @gio73808 ปีที่แล้ว +1

    I'm stuck at the middle :/ Where did you take those rooms 'Work' and 'Hobby' from?
    Lol i forgot that you created them in django administration 🤣

  • @rhysgrainger5910
    @rhysgrainger5910 ปีที่แล้ว +1

    hey just wondering if you anyone has tried to deploy the project? i cant see to deploy it ://

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Hey, i haven’t done so no :/

  • @benphat9746
    @benphat9746 8 หลายเดือนก่อน +1

    Hello. my message can't save and I don't know how to fix it. Can u help me pls =)))

    • @CodeWithStein
      @CodeWithStein  8 หลายเดือนก่อน

      Hey, i Get this question a lot. Every time it has been a typo or an indentation error. Please check all of code code and compare it to mine. Let me know what happens 👍🏻

    • @benphat9746
      @benphat9746 8 หลายเดือนก่อน

      yeah, now it only saves the message, but username when reload it does not save sir =)))@@CodeWithStein

  • @styleking235
    @styleking235 ปีที่แล้ว +1

    In video 35.21 11 the line error show in server {% for room in room%} 😖😣😢

    • @styleking235
      @styleking235 ปีที่แล้ว

      Exception type : They show operationallyerror at /rooms/ and
      exception value :- no such table : room_room

    • @styleking235
      @styleking235 ปีที่แล้ว

      It shows no such table : room_room

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Hey :-)
      First of all, you should use {% for room in rooms %}. Since rooms is in plural.
      Did you remember to run the makemigrations and migrate scripts?

    • @styleking235
      @styleking235 ปีที่แล้ว

      @@CodeWithStein yes I will put for room in rooms

  • @Positive-Vibes03
    @Positive-Vibes03 2 ปีที่แล้ว +1

    Iam getting 500 internal server error, Exception inside application Daphne pls help

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว

      What is daphne? And what does the error say? ☺️

  • @АдельНурисламова
    @АдельНурисламова ปีที่แล้ว +1

    Can anybody help? Why I have this mistake : raise ImproperlyConfigured("Cannot import ASGI_APPLICATION module %r" % path)
    django.core.exceptions.ImproperlyConfigured: Cannot import ASGI_APPLICATION module 'djangochat.asgi' ???

    • @CodeWithStein
      @CodeWithStein  8 หลายเดือนก่อน

      Hey, did you fix it? ☺️

  • @engthanoon3889
    @engthanoon3889 ปีที่แล้ว +1

    thanks a lot

  • @RC_CAVALEIRO
    @RC_CAVALEIRO ปีที่แล้ว +1

    What about receiving messages back..

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Messages are sent back and forward?

  • @wahidlaaleg8315
    @wahidlaaleg8315 ปีที่แล้ว +1

    hello good video but for some reason i have a problem with the weboscket it give me this message "Not Found: /ws/work/" plz help

  • @parthdesai8451
    @parthdesai8451 2 ปีที่แล้ว

    Absolutely loved this!!

  • @eswarchinnam4046
    @eswarchinnam4046 6 หลายเดือนก่อน +1

    Every thing is good ..but messages are not sending..!can you please help anyone!

    • @CodeWithStein
      @CodeWithStein  6 หลายเดือนก่อน

      Hey, are there any error messages?

    • @milanstojiljkovic4802
      @milanstojiljkovic4802 6 หลายเดือนก่อน

      @@CodeWithStein I have the same problem, no error messages whatsoever... I am stuck at 1:01:00

  • @denisculic5763
    @denisculic5763 2 ปีที่แล้ว +1

    Hello, what color theme do you use in VS Code?

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว

      Hey, I just use the default one 😉

  • @styleking235
    @styleking235 ปีที่แล้ว +1

    Stein it shows in terimnal type error:- NoneType object is not subscriptable not found :- /ws/work/ all codes are correct I watched video more than 2 times start to end 😭😭

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Do you have the code in git where i can see?

    • @styleking235
      @styleking235 ปีที่แล้ว

      @@CodeWithStein but my code is correct why I have git please any other option😭😭

    • @alphaytgaming9769
      @alphaytgaming9769 ปีที่แล้ว +1

      install correct version of channel

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Check out my newest video 😁

  • @k33p-smile
    @k33p-smile 2 ปีที่แล้ว +1

    nice video bro :)

    • @k33p-smile
      @k33p-smile 2 ปีที่แล้ว +2

      and thanks to teach me the django channels

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว

      THanks :-D

  • @shivanshmehta7417
    @shivanshmehta7417 2 ปีที่แล้ว +1

    ValueError: No route found for path 'ws//'.
    geeting this error in the command line
    plz can someone help🥺

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว

      Hey, did you manage to solve it?

    • @shivanshmehta7417
      @shivanshmehta7417 2 ปีที่แล้ว

      @@CodeWithStein not till now

    • @styleking235
      @styleking235 ปีที่แล้ว

      @@shivanshmehta7417 hey solve Hua kya ws not found wla???

  • @aishwaryaporwal2321
    @aishwaryaporwal2321 2 ปีที่แล้ว +2

    Am getting this error "websocket connection failed" what to do now?

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว

      Hmm, Are you sure you typed everything 100% correct? I get this type of question very often, and 99% of the time there is a little typo 🤷🏼‍♂️

    • @aishwaryaporwal2321
      @aishwaryaporwal2321 2 ปีที่แล้ว

      @@CodeWithStein yes I even downloaded ur project from GitHub and still having the same issue

    • @nicksowl
      @nicksowl 2 ปีที่แล้ว

      Same here. In console I'm getting 404, 'Not Found: /ws/hobby/".

    • @aishwaryaporwal2321
      @aishwaryaporwal2321 2 ปีที่แล้ว

      @@nicksowl yesss

    • @nicksowl
      @nicksowl 2 ปีที่แล้ว +6

      Fixed. The issue with the version of the channels package. I used the latest one but switched to the one Stein is using. Probably newer version requires a different configuration.
      First, uninstall channels with 'pip uninstall channel'. Then install right version with ''pip install channels==3.0.4'.
      Hope it solves your issue ✌

  • @yourbehaviour7027
    @yourbehaviour7027 2 ปีที่แล้ว

    Будь Здоров !!!! Be healthy 19:18 ))))

  • @nisargshah7531
    @nisargshah7531 ปีที่แล้ว

    Not sure why you have login inside signup but only authviews used to login?

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Hey, i wanted to customize the sign up flow, but the login is pretty standard 🤷🏼‍♂️

  • @bl4wly419
    @bl4wly419 ปีที่แล้ว +1

    @CodeWithStein thx for content this video mean alot to me but i've trouble in [51:00] after that my console doesn't show up webSocket Handshake and webSocket connect, i don't know why can u help me ;--;

    • @bl4wly419
      @bl4wly419 ปีที่แล้ว

      now i've new error it's CSRF verification failed. Request aborted.
      Reason given for failure:
      CSRF token missing.
      i make sure i follow you along with you but that happen damm

    • @meutronion
      @meutronion 9 หลายเดือนก่อน

      did you solve this issuee
      @@bl4wly419

    • @CodeWithStein
      @CodeWithStein  9 หลายเดือนก่อน

      Were you able to solve it?

    • @bl4wly419
      @bl4wly419 9 หลายเดือนก่อน

      @@CodeWithStein I’ve try to rebuild like 2 or 3 time and still has this error ,answer is no I can’t, I dunno what I did wrong 🥲

  • @Gp.Nwaobia
    @Gp.Nwaobia 2 หลายเดือนก่อน +1

    My sign up page is not working

    • @CodeWithStein
      @CodeWithStein  2 หลายเดือนก่อน

      Hello, that sounds weird. Are there any errors or similar? What is not actually working?

  • @bhavnaphate4501
    @bhavnaphate4501 10 หลายเดือนก่อน +1

    My messages are not saved why is that happening

    • @CodeWithStein
      @CodeWithStein  10 หลายเดือนก่อน

      Hey, are there any error messages?

  • @Udhay-007
    @Udhay-007 19 วันที่ผ่านมา +1

    Is this tutorial okay for beginners? Anyone??

    • @CodeWithStein
      @CodeWithStein  19 วันที่ผ่านมา

      I think you will be able to follow along 👍🏻

  • @styleking235
    @styleking235 ปีที่แล้ว +1

    I update channel 3.0.5 also shows the room error😭😭

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Okay. I need more details, you find it in the network tab in the browser 😉

    • @styleking235
      @styleking235 ปีที่แล้ว

      @@CodeWithStein how to find you confusing me😭😭

  • @codegcl8452
    @codegcl8452 2 ปีที่แล้ว

    In the asgi.py I get an error doing import room.routing saying “No module named 'room’”. How do I fix this?

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว

      Hey, that's weird :-s
      Are you sure that 'room' is registered in the settings.py file? In INSTALLED_APPS

    • @codegcl8452
      @codegcl8452 2 ปีที่แล้ว

      @@CodeWithStein Yes, I have 'room' in my INSTALLED_APPS

    • @vladvlad3544
      @vladvlad3544 2 ปีที่แล้ว

      @@codegcl8452 did you solve it?

    • @Sean2046
      @Sean2046 ปีที่แล้ว

      same issue

  • @mrmine8569
    @mrmine8569 11 หลายเดือนก่อน +1

    You didn’t show the function of creating a room, where you create and add someone.

    • @CodeWithStein
      @CodeWithStein  10 หลายเดือนก่อน +1

      Hmm, you can do it in the admin area i think 👍🏻

  • @Caiomsilva
    @Caiomsilva 2 ปีที่แล้ว

    when i log in into the site, this login is included in admin page and in normal site at the same type, is this normal ? is it possible to make it different "sessions" ?

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว

      Not 100% sure what you mean? Only the superuser have access to the admin area ☺️

    • @Caiomsilva
      @Caiomsilva 2 ปีที่แล้ว +1

      @@CodeWithStein sorry, there was a typing mistake, i didn't realize, it's supose to be "time" not "type". I know that only superusers have access to the admin page, thats why when i'm logged in with a normal user, i'm automatically 'kicked out'.
      I recorded a 1 minute video showing what i mean by log in in admin page and the normal site at same time.
      th-cam.com/video/_sFAj8CMRMI/w-d-xo.html

    • @manuelguzman2107
      @manuelguzman2107 2 ปีที่แล้ว +1

      @@Caiomsilva I think I can answer that. Yes, an admin can interact with the webapp as a normal user too, I'm not 100% sure if there is a way where you can change that, I supose that it can be possible, but certainly I don't see that as a problem and it's completely normal that a "superuser" have both permissions, to interact with the admin panel (/admin) and in the chat as a normal user. And if you want that to be in different sessions, I think the most simple solution would be to create a new user, because yes, if what you want is to have separate sessions, the most recommendable would be to have different users in different sessions included.

  • @frameff9073
    @frameff9073 2 ปีที่แล้ว +1

    thank

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว

      You're welcome :-D I hope you liked it :-D

  • @SaidiMarouen
    @SaidiMarouen ปีที่แล้ว

    hi please sir , the message would not display and also there is no error in the console

    • @CodeWithStein
      @CodeWithStein  ปีที่แล้ว

      Hey, that sounds weird. Are there no errors in the browser either?

    • @SaidiMarouen
      @SaidiMarouen ปีที่แล้ว

      @@CodeWithStein no there is 0 errors also the websocket is working and the message is being sent ,but sir i think the problem is in onmessage not working because the only problem i have is that the message is not being seen in the view room.html

  • @Gp.Nwaobia
    @Gp.Nwaobia 2 หลายเดือนก่อน +1

    Mine is not showing colour

    • @CodeWithStein
      @CodeWithStein  2 หลายเดือนก่อน +1

      Hmm, what do you mean?

    • @Gp.Nwaobia
      @Gp.Nwaobia 2 หลายเดือนก่อน

      Sorry i have fixed it, the background color was not coming on...i made a mistake ​@CodeWithStein

  • @joshuajuniorswiga
    @joshuajuniorswiga 7 หลายเดือนก่อน +1

    Could you please provide the source code?

    • @CodeWithStein
      @CodeWithStein  7 หลายเดือนก่อน

      Hey, there is a link in the description of the video :-)

  • @groodbrood8950
    @groodbrood8950 3 หลายเดือนก่อน +2

    This app is NOT real time. can you pls make teach us how to make it real time witch means it will connect to the server and an update is the messages model it rerecives the messages and updates real time? pls ;(

    • @CodeWithStein
      @CodeWithStein  3 หลายเดือนก่อน

      This is 100% real time ☺️ if that is not working at your end, you’ve probably made a typo or similar 🤷🏼‍♂️

    • @groodbrood8950
      @groodbrood8950 3 หลายเดือนก่อน

      my bad it works like butter. ehehhe Thenks

  • @jhordytoro8501
    @jhordytoro8501 2 ปีที่แล้ว

    I need help with this: AttributeError: 'NoneType' object has no attribute 'group_add' :c

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว +1

      Hey, weird :s does it say where in the code it comes from?

    • @jhordytoro8501
      @jhordytoro8501 2 ปีที่แล้ว

      @@CodeWithStein Sorry, the error was due to a TypeError in settings.py. Thanks :D

    • @CodeWithStein
      @CodeWithStein  2 ปีที่แล้ว

      Great 👍🏻

  • @abderrahmanegorram
    @abderrahmanegorram ปีที่แล้ว +1

    bro i need your help please

  • @soniaerdei6014
    @soniaerdei6014 10 หลายเดือนก่อน

    pip install channels==3.0.5 if you are having problems

    • @CodeWithStein
      @CodeWithStein  10 หลายเดือนก่อน

      That will solve it! Or you can go through my newest chat tutorial where I use version 4 :-D

    • @abdurrahmanbasil8473
      @abdurrahmanbasil8473 10 หลายเดือนก่อน

      youre a life saver dude...im trying to fix it for the past one hour