Python Django Realtime Chat Project - Full Course

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 394

  • @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  7 месяцев назад

      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.

  • @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 👍🏻

  • @justme-dz1wy
    @justme-dz1wy 10 месяцев назад +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 10 месяцев назад

      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 10 месяцев назад

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

    • @CodeWithStein
      @CodeWithStein  10 месяцев назад +1

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

    • @trippingwithcrujo7708
      @trippingwithcrujo7708 7 месяцев назад +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  7 месяцев назад

      @trippingwithcrujo7708 will try to add that yes. Here is the newer video btw: Django Channels Real-time Communication Project: Building a Chat Website
      ruclips.net/video/9e7CTR2Ya4Y/видео.html

  • @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.

  • @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 5 месяцев назад +1

      Exactly what I was looking for!

    • @JacobSean-iy3tl
      @JacobSean-iy3tl 3 месяца назад

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

  • @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

  • @exocom2
    @exocom2 Год назад +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  Год назад

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

  • @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 7 месяцев назад +1

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

    • @CodeWithStein
      @CodeWithStein  7 месяцев назад

      @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 7 месяцев назад

      ​@@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 7 месяцев назад

      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

  • @KamTechTravelTech
    @KamTechTravelTech Год назад +1

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

  • @FalseHuman
    @FalseHuman Год назад +4

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

  • @8NLD8
    @8NLD8 9 месяцев назад +2

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

    • @CodeWithStein
      @CodeWithStein  9 месяцев назад

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

  • @tanjimashraf803
    @tanjimashraf803 Год назад +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!!

  • @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 ☺️

  • @swishers2807
    @swishers2807 9 месяцев назад +1

    bro, your video helped me understand everything more or less

  • @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 28 дней назад

      @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...

  • @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?

  • @akhilkore4537
    @akhilkore4537 Год назад +2

    Nice explanation, i'm from india

  • @ayatcasuals2805
    @ayatcasuals2805 Год назад +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 Месяц назад +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  Месяц назад

      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 Месяц назад

      @@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.

  • @michaelshevelin2234
    @michaelshevelin2234 10 дней назад +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.

  • @Th3Devi1InMe
    @Th3Devi1InMe 10 месяцев назад +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  10 месяцев назад +1

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

  • @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 😉

  • @GevorgVardanyan
    @GevorgVardanyan 2 года назад +1

    Hi Stein.
    Thank you for this nice tutorial.

  • @user-lw4ow2fm9n
    @user-lw4ow2fm9n 8 месяцев назад +1

    Good Afternoon Sir!!

  • @JacobSean-iy3tl
    @JacobSean-iy3tl 3 месяца назад +1

    awesome content as always

  • @soulfibre6695
    @soulfibre6695 6 месяцев назад +1

    Awesome tut
    Thank you very much, sir!

  • @dhruvkalal9062
    @dhruvkalal9062 2 месяца назад

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

  • @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 👍🏻

  • @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 :-)

  • @sergeyantonov3300
    @sergeyantonov3300 Год назад +1

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

  • @greatest5902
    @greatest5902 8 месяцев назад +1

    great tutorial, thanks!

  • @user-lw4ow2fm9n
    @user-lw4ow2fm9n 8 месяцев назад +1

    GOOD AFTERNOON SIR
    !

  • @bhavnaphate4501
    @bhavnaphate4501 8 месяцев назад +4

    Also my logout page is not working

    • @CodeWithStein
      @CodeWithStein  8 месяцев назад

      Hmm are there any errors?

    • @bhavnaphate4501
      @bhavnaphate4501 8 месяцев назад

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

    • @shiburobert
      @shiburobert 3 месяца назад

      Me also

    • @MerinaFidelis
      @MerinaFidelis 2 месяца назад +1

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

  • @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 😭😭

  • @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

  • @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 Год назад

      Having same error right now tried everything but still same

    • @styleking235
      @styleking235 Год назад

      @@PhilKlen bro did you solved it???

    • @groodbrood8950
      @groodbrood8950 28 дней назад

      reloade it

  • @Leo-gz8us
    @Leo-gz8us Год назад +1

    Thank you for your work. This helped a lot

  • @jermainecogo3434
    @jermainecogo3434 Год назад +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  Год назад

      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 7 месяцев назад

      @jermainecogo3434 did you fix it ?

  • @adi_ch.10503
    @adi_ch.10503 Месяц назад +2

    The messages are not shown to me

    • @CodeWithStein
      @CodeWithStein  Месяц назад

      I will answer your other comment 😉

  • @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?

  • @sangeetaupadhye7439
    @sangeetaupadhye7439 6 месяцев назад +1

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

    • @CodeWithStein
      @CodeWithStein  6 месяцев назад

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

    • @muhammetemingulmez
      @muhammetemingulmez 4 месяца назад

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

  • @Ayush-fe9kz
    @Ayush-fe9kz Год назад +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  Год назад

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

  • @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  6 месяцев назад

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

  • @groodbrood8950
    @groodbrood8950 28 дней назад +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  28 дней назад

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

    • @groodbrood8950
      @groodbrood8950 28 дней назад

      my bad it works like butter. ehehhe Thenks

  • @Antarah525
    @Antarah525 10 месяцев назад +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 10 месяцев назад +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  10 месяцев назад

      Awesome 👍🏻👍🏻

  • @fndsaad
    @fndsaad 11 месяцев назад +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.

  • @islomavezov-pk4eb
    @islomavezov-pk4eb 5 месяцев назад +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  4 месяца назад +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 Месяц назад +1

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

    • @islomavezov-pk4eb
      @islomavezov-pk4eb 18 дней назад

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

    • @islomavezov-pk4eb
      @islomavezov-pk4eb 18 дней назад

      @@CodeWithStein thank you

  • @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?

  • @AshMendes-s4n
    @AshMendes-s4n 7 месяцев назад +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  7 месяцев назад

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

  • @heisenbergww2807
    @heisenbergww2807 Год назад +2

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

  • @cookiebrains
    @cookiebrains 9 месяцев назад +1

    Thank you, this is very helpful

    • @CodeWithStein
      @CodeWithStein  9 месяцев назад

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

  • @mrmine8569
    @mrmine8569 8 месяцев назад +1

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

    • @CodeWithStein
      @CodeWithStein  8 месяцев назад +1

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

  • @eswarchinnam4046
    @eswarchinnam4046 4 месяца назад +1

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

    • @CodeWithStein
      @CodeWithStein  4 месяца назад

      Hey, are there any error messages?

    • @milanstojiljkovic4802
      @milanstojiljkovic4802 4 месяца назад

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

  • @rohitbachwani798
    @rohitbachwani798 10 месяцев назад +1

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

    • @CodeWithStein
      @CodeWithStein  10 месяцев назад

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

  • @user-lw4ow2fm9n
    @user-lw4ow2fm9n 8 месяцев назад +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?

  • @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 🤣

  • @benphat9746
    @benphat9746 5 месяцев назад +1

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

    • @CodeWithStein
      @CodeWithStein  5 месяцев назад

      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 5 месяцев назад

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

  • @davidmaynard2724
    @davidmaynard2724 Год назад +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  Год назад

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

  • @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 :/

  • @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 7 месяцев назад

      Try channels 3.0.5 that seemed to work for me.

  • @rislifamili
    @rislifamili Год назад +1

    Thank you so much.🙏🙏

  • @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 :/

  • @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 😁

  • @sanaullahlabib
    @sanaullahlabib 3 месяца назад +1

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

    • @CodeWithStein
      @CodeWithStein  3 месяца назад

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

  • @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

  • @Gp.Nwaobia
    @Gp.Nwaobia 6 дней назад +1

    My sign up page is not working

    • @CodeWithStein
      @CodeWithStein  5 дней назад

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

  • @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? ☺️

  • @NynikaSuji
    @NynikaSuji 10 месяцев назад +2

    how i connect with my backend

    • @CodeWithStein
      @CodeWithStein  9 месяцев назад

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

  • @bhavnaphate4501
    @bhavnaphate4501 8 месяцев назад +1

    My messages are not saved why is that happening

    • @CodeWithStein
      @CodeWithStein  8 месяцев назад

      Hey, are there any error messages?

  • @ahmedghallab5342
    @ahmedghallab5342 11 месяцев назад +1

    شكرا Thanks💙

  • @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

  • @ayeezaa_me
    @ayeezaa_me Месяц назад +1

    Please help me to see the django administration

    • @CodeWithStein
      @CodeWithStein  День назад

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

  • @aishwaryaporwal2321
    @aishwaryaporwal2321 Год назад +2

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

    • @CodeWithStein
      @CodeWithStein  Год назад

      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 Год назад

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

    • @nicksowl
      @nicksowl Год назад

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

    • @aishwaryaporwal2321
      @aishwaryaporwal2321 Год назад

      @@nicksowl yesss

    • @nicksowl
      @nicksowl Год назад +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 ✌

  • @codewriter3000
    @codewriter3000 10 месяцев назад +1

    Your sign up form validation is broken. When I should be seeing an error message, I instead see an error that "the view core.views.signup didn't return an HttpResponse object. It returned None instead."

    • @CodeWithStein
      @CodeWithStein  10 месяцев назад +1

      Hey, that sounds weird. It is working here with me :-)

  • @NynikaSuji
    @NynikaSuji 10 месяцев назад +1

    really thank you sir

  • @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 👍🏻

  • @shivanshmehta7417
    @shivanshmehta7417 Год назад +1

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

  • @denisculic5763
    @denisculic5763 2 года назад +1

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

    • @CodeWithStein
      @CodeWithStein  2 года назад

      Hey, I just use the default one 😉

  • @rizkylogy2294
    @rizkylogy2294 Год назад +1

    nice video bro :)

  • @Gp.Nwaobia
    @Gp.Nwaobia 6 дней назад +1

    Mine is not showing colour

    • @CodeWithStein
      @CodeWithStein  6 дней назад +1

      Hmm, what do you mean?

    • @Gp.Nwaobia
      @Gp.Nwaobia 6 дней назад

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

  • @rhysgrainger5910
    @rhysgrainger5910 Год назад +1

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

  • @bl4wly419
    @bl4wly419 10 месяцев назад +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 10 месяцев назад

      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 7 месяцев назад

      did you solve this issuee
      @@bl4wly419

    • @CodeWithStein
      @CodeWithStein  6 месяцев назад

      Were you able to solve it?

    • @bl4wly419
      @bl4wly419 6 месяцев назад

      @@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 🥲

  • @RC_CAVALEIRO
    @RC_CAVALEIRO Год назад +1

    What about receiving messages back..

  • @engthanoon3889
    @engthanoon3889 Год назад +1

    thanks a lot

  • @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 🤷🏼‍♂️

  • @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😭😭

  • @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.
      ruclips.net/video/_sFAj8CMRMI/видео.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.

  • @parthdesai8451
    @parthdesai8451 2 года назад

    Absolutely loved this!!

  • @codegcl8452
    @codegcl8452 Год назад

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

    • @CodeWithStein
      @CodeWithStein  Год назад

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

    • @codegcl8452
      @codegcl8452 Год назад

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

    • @vladvlad3544
      @vladvlad3544 Год назад

      @@codegcl8452 did you solve it?

    • @Sean2046
      @Sean2046 10 месяцев назад

      same issue

  • @user-kc5ql5vl6v
    @user-kc5ql5vl6v Год назад

    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?

    • @user-kc5ql5vl6v
      @user-kc5ql5vl6v Год назад

      @@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

  • @joshuajuniorswiga
    @joshuajuniorswiga 5 месяцев назад +1

    Could you please provide the source code?

    • @CodeWithStein
      @CodeWithStein  4 месяца назад

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

  • @styleking235
    @styleking235 Год назад +1

    Thank you it's solved I start to program😢

  • @frameff9073
    @frameff9073 2 года назад +1

    thank

    • @CodeWithStein
      @CodeWithStein  2 года назад

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

  • @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 👍🏻

  • @user-xh3mk7iu5f
    @user-xh3mk7iu5f Год назад +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' ???

  • @yourbehaviour7027
    @yourbehaviour7027 2 года назад

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

  • @andreyshevchenko5925
    @andreyshevchenko5925 2 года назад +1

    cool

  • @styleking235
    @styleking235 Год назад

    It shows operational error at /rooms/😢😢

    • @CodeWithStein
      @CodeWithStein  Год назад

      It's hard to help without any more details :/ Which version of channels do you have? I think version 4 is the newest, but you can't use a newer one than 3.0.5 or similar ;-)

  • @edi-valentin
    @edi-valentin 2 года назад

    i need help with this : Uncaught ReferenceError: message is not defined

    • @CodeWithStein
      @CodeWithStein  2 года назад

      Hmm, not much details:s are there anything more?

    • @edi-valentin
      @edi-valentin 2 года назад +1

      @@CodeWithStein I solved the problem thanks

    • @CodeWithStein
      @CodeWithStein  2 года назад +1

      Nice 😁

    • @edi-valentin
      @edi-valentin 2 года назад

      @@CodeWithStein but you will also make a video on how we can host on the web 😅

    • @CodeWithStein
      @CodeWithStein  2 года назад

      Hey, I haven’t planned that for this video no 🤷🏼‍♂️