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 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.
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.
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.
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.
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
@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
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]
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 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.
@@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
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
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.
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.
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
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
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?
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 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.
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.
@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...
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.
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 😉
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!
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.
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?
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 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
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?
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 :/
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 👍🏻
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?
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 😭😭
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 ✌
@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 ;--;
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
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 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
@@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.
@@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
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 ;(
Really my lifesaver, please keep doing contents like this. The clearest and most structured tutorials about django and python on Earth I could say.
Thanks 😁 thats Nice of you to say 😁
@@CodeWithStein 😘
@@CodeWithStein In this lesson, are you making an app for group chats or for two people to communicate?
For groups 👍🏻
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😅.
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 👍🏻
@@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.
Thank you 😁 check out the description for the video, there is a link to my paypal 😉
The hate for CSS is real. I feel it doesn't allow me talk to the computer as much
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.
Those who have problems with the websocket connection try using the version of channels==3.0.5
That solved the problem for me
Thanks brother. I spent 3 hours trying to figure out what's wrong 😅
Same haha, I was wondering what I'm doing wrong. 😄@@oussama-jabrane
thankss
Thanks ❤
Ty!!
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.
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.
Is there any way I can contact u for help if ur open for it.
That is correct 👍🏻 i do this in one of my newer videos 😁
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
@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
U just got yourself a new subscriber. I really appreciate some quality content .keep up the good work man
Thanks 😁 check out my newest video as well if you want to learn more channels 👍🏻
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]
Exactly what I was looking for!
if the site scales up to have many rooms you may also want to add a search functionality for finding rooms
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...
are these the only changes you need to do? I did exactly that and I get an error
@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.
@@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
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
Thanks for the video. I had to install daphne in order for the WebSocket transmission to work
Thanks man you helped me too
That is correct 😁
Hey could you please explain
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.
x2 ^
Thanks 😁
Thank you so much for the feedback 😁😁
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.
Hey, you're welcome :-D Ah, that is a good suggestion ;-)
bro, your video helped me understand everything more or less
Nice 😁
I built it, it was an amzing journeyThank you Mr.
Thanks 😁😁
@@CodeWithStein appreciate it
Thank you sooo muuch ! I needed to use daphne channel with official documentation but It''s really useful !
Great 😁 i have a newer video where I use daphne also ☺️
Nice explanation, i'm from india
Thanks for the feedback :-)
An amazing content, with your content & previous knowledge, I'm about to deploy my chat-server to the colud. Thank you ❤
Great 😁😁
@@CodeWithStein Successfully deployed that ✨😊
Nice 😁
@tanjim ashraf how do you deploy chat-sever? pls i wanna know it. Sorry cause i speak english very bad. Thank u and Stein!!
Awesome tut
Thank you very much, sir!
Thanks 😁😁
Good Afternoon Sir!!
Hi 😁
thanks a lot ur videos are great!, as soon as i have some money to spare ill join ur patreon !
You're welcome :-D Nice, glad to hear that :-D
great tutorial, thanks!
Glad you liked it :-D
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!
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.
GOOD AFTERNOON SIR
!
Hi 😁
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
Maybe, if so it would be to a ubuntu server or very similar 👍🏻 i think i even do it in my newest videos 😁
I keep getting the error 'CSRF verification failed. Request aborted.", which I didn't solve by following what you did, what should I do?
Hmm, cant remember that I got that error. Are you sure your code is identical to mine?
It's amazing!!! Thank you so match!
Thanks :-D
Thank you for your work. This helped a lot
Great :-D
awesome content as always
Thank you :-D
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
Hey, sounds weird. Are you sure the code is identical to mine?
Hi Stein.
Thank you for this nice tutorial.
Hey, you're welcome :-D
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?
Hey, that does not sound good.. I’m not familiar with twisted :/ are the any errors in the browsers console?
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
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?
@@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.
pip install channels==3.0.5 if you are having problems, will configure my app again tomorrow. :)
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 :-)
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.
Hey, thanks. It's the way Django recommend us to solve this :-)
Hi , anybody facing this issue :
work:80 WebSocket is already in CLOSING or CLOSED state.
Hey, weird :/ are you sure you typed everything correctly?
Having same error right now tried everything but still same
@@PhilKlen bro did you solved it???
reloade it
It shows error in site inspect WebSocket connection to ws:// server is failed 😭
I hope you fix it soon 👍🏻
@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...
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? )
Great 😁 i dont have any tutorials for that no :/
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.
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 😉
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
Hey, that is weird :/ are there any errors in the browsers console?
i got the same issue. Did you resolve it?
@@CodeWithStein hey, it is saying that websocket connection failed! on console log
@jermainecogo3434 did you fix it ?
51.22 after accept shows error in aspect 😭😭 what I you do ws/work/ not found in terminal and in aspect shows onclose error 😭😭
Did you find my code on git?
@@CodeWithStein yes but no use same error
My badd 😭😭
Thank you, this is very helpful
You're welcome :-D Glad I could help :-D
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?
Hey, Thanks 😁 yes you can, but its too much to explain here :/
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?
I fixed it by adding "LOGIN_REDIRECT_URL = '/rooms'", must've been somewhere in the video and I didn't notice it
Awesome 👍🏻👍🏻
really thank you sir
You're welcome :-D
why my asgi/channels development server is not starting it starting as simple server
Hmm, i do not know :/ It might be that you're using a newer version of something than me?
Hi Stein, after building the chat app, messages sent doesn't reflect on the chatbox. it just disappears. how do i fix that please?
Hey, weird. Are there any error messages?
Hi
Is it possible to send an automated hardcoded dummy reply to the group once a user sends a message?
Yes it is, and I do it in one of my newer videos 👍🏻👍🏻
work/:90 WebSocket is already in CLOSING or CLOSED state.
m getting this error
Hey, did you manage to fix this? You probably have a typo somewhere I will guess
@@CodeWithStein i have the same problem, could you please explain your guess?
Even after he showed us how to fix the 403: Forbidden error, I still couldn't seem to fix it. Can anyone help?
Hey, are there any more details to the error?
how i connect with my backend
Just follow the tutorial and you will get to that point :-D
Does anyone has any link to django chat app where we can also share files?
I dont know at least :/
Thank you so much.🙏🙏
You’re welcome 😁
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!
Try channels 3.0.5 that seemed to work for me.
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.
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?
Hey, weird. Probably in the consumers.py. But its hard to say without looking at your code :/
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/
Hmm weird. Which version of Channels are you using?
I am using Django 3.2
No the channels version. Run «pip freeze» to find it. You need to install version 3.0.5 or similar 👍🏻
شكرا Thanks💙
☺️
Also my logout page is not working
Hmm are there any errors?
@@CodeWithStein Method not Allowed(GET )://logout
"GET /logout/ HTTP/ 1.1" 405 0
Me also
The recent version of Django from version 4.0 to date changed the logout functionality instead of GET now uses POST
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 ?
Hey, that sounds weird. I haven't experienced this. Are there any error messages?
Thank you it's solved I start to program😢
So its working now?
@@CodeWithStein yes 😛
@@CodeWithStein I restart a new application
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!
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 😁
@@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
please help me to find the base,html and front.html?
Hey, there is a link to them in the description ☺️
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?
oh nevermind, i think i found the solution
Nice 😁
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?
Hey, that is possible yes! But it takes a bit of work, much more than I can write here in a comment :/
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.
What was the error?
hello stein, why logout doesn't work, i check all your code from my code, everything is solid but didn't work.
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 :/
{% csrf_token %}
logout
put this in your base.html
@@ismaelkf thanks bro, anyway did you get job??
@@CodeWithStein thank you
Please help me to see the django administration
Hey, why don't you see that? It should be available at /admin/
Stein please put a room.html code full please🙏😖
You can find all of the code here: github.com/SteinOveHelset/djangochat 👍🏻
The messages are not shown to me
I will answer your other comment 😉
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 🤣
Hehe, Yup ☺️☺️
hey just wondering if you anyone has tried to deploy the project? i cant see to deploy it ://
Hey, i haven’t done so no :/
Hello. my message can't save and I don't know how to fix it. Can u help me pls =)))
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 👍🏻
yeah, now it only saves the message, but username when reload it does not save sir =)))@@CodeWithStein
In video 35.21 11 the line error show in server {% for room in room%} 😖😣😢
Exception type : They show operationallyerror at /rooms/ and
exception value :- no such table : room_room
It shows no such table : room_room
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?
@@CodeWithStein yes I will put for room in rooms
Iam getting 500 internal server error, Exception inside application Daphne pls help
What is daphne? And what does the error say? ☺️
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' ???
Hey, did you fix it? ☺️
thanks a lot
Youre welcome 😁
What about receiving messages back..
Messages are sent back and forward?
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
yeah i got the same error.
same here as well
@@devmrnecro4215 change Channels version to 3
I think you can just downgrade the channel version 👍🏻
Absolutely loved this!!
Thank you :-D
Every thing is good ..but messages are not sending..!can you please help anyone!
Hey, are there any error messages?
@@CodeWithStein I have the same problem, no error messages whatsoever... I am stuck at 1:01:00
Hello, what color theme do you use in VS Code?
Hey, I just use the default one 😉
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 😭😭
Do you have the code in git where i can see?
@@CodeWithStein but my code is correct why I have git please any other option😭😭
install correct version of channel
Check out my newest video 😁
nice video bro :)
and thanks to teach me the django channels
THanks :-D
ValueError: No route found for path 'ws//'.
geeting this error in the command line
plz can someone help🥺
Hey, did you manage to solve it?
@@CodeWithStein not till now
@@shivanshmehta7417 hey solve Hua kya ws not found wla???
Am getting this error "websocket connection failed" what to do now?
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 🤷🏼♂️
@@CodeWithStein yes I even downloaded ur project from GitHub and still having the same issue
Same here. In console I'm getting 404, 'Not Found: /ws/hobby/".
@@nicksowl yesss
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 ✌
Будь Здоров !!!! Be healthy 19:18 ))))
I will 😁😁
Not sure why you have login inside signup but only authviews used to login?
Hey, i wanted to customize the sign up flow, but the login is pretty standard 🤷🏼♂️
@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 ;--;
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
did you solve this issuee
@@bl4wly419
Were you able to solve it?
@@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 🥲
My sign up page is not working
Hello, that sounds weird. Are there any errors or similar? What is not actually working?
My messages are not saved why is that happening
Hey, are there any error messages?
Is this tutorial okay for beginners? Anyone??
I think you will be able to follow along 👍🏻
I update channel 3.0.5 also shows the room error😭😭
Okay. I need more details, you find it in the network tab in the browser 😉
@@CodeWithStein how to find you confusing me😭😭
In the asgi.py I get an error doing import room.routing saying “No module named 'room’”. How do I fix this?
Hey, that's weird :-s
Are you sure that 'room' is registered in the settings.py file? In INSTALLED_APPS
@@CodeWithStein Yes, I have 'room' in my INSTALLED_APPS
@@codegcl8452 did you solve it?
same issue
You didn’t show the function of creating a room, where you create and add someone.
Hmm, you can do it in the admin area i think 👍🏻
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" ?
Not 100% sure what you mean? Only the superuser have access to the admin area ☺️
@@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
@@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.
thank
You're welcome :-D I hope you liked it :-D
hi please sir , the message would not display and also there is no error in the console
Hey, that sounds weird. Are there no errors in the browser either?
@@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
Mine is not showing colour
Hmm, what do you mean?
Sorry i have fixed it, the background color was not coming on...i made a mistake @CodeWithStein
Could you please provide the source code?
Hey, there is a link in the description of the video :-)
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 ;(
This is 100% real time ☺️ if that is not working at your end, you’ve probably made a typo or similar 🤷🏼♂️
my bad it works like butter. ehehhe Thenks
I need help with this: AttributeError: 'NoneType' object has no attribute 'group_add' :c
Hey, weird :s does it say where in the code it comes from?
@@CodeWithStein Sorry, the error was due to a TypeError in settings.py. Thanks :D
Great 👍🏻
bro i need your help please
What is the problem? ☺️
pip install channels==3.0.5 if you are having problems
That will solve it! Or you can go through my newest chat tutorial where I use version 4 :-D
youre a life saver dude...im trying to fix it for the past one hour