Re: Django-channels disconnects right after sending a message

2017-02-22 Thread Nikoleta Misheva
., 9:27:32 UTC+2, Andrew Godwin написа: > > Then you need to add more and more back until it does disconnect and you > should be able to find the line that's doing it! > > Andrew > > On Tue, Feb 21, 2017 at 11:03 PM, Nikoleta Misheva <nith...@gmail.com > > wrote: >

Re: Django-channels disconnects right after sending a message

2017-02-21 Thread Nikoleta Misheva
ng on then - the logs don't > reveal very much. I'd try reducing it down to simpler code until you can > replicate it in only a few lines and work from there. > > Andrew > > On Tue, Feb 21, 2017 at 11:46 AM, Nikoleta Misheva <nith...@gmail.com > > wrote: > >

Re: Django-channels disconnects right after sending a message

2017-02-21 Thread Nikoleta Misheva
l you can > replicate it in only a few lines and work from there. > > Andrew > > On Tue, Feb 21, 2017 at 11:46 AM, Nikoleta Misheva <nith...@gmail.com > > wrote: > >> I don't know how to get the close code. It disconnects right after you >> hit the send

Re: Django-channels disconnects right after sending a message

2017-02-21 Thread Nikoleta Misheva
t; to add JS to log it) What prints on the Python console? > > Andrew > > On Tue, Feb 21, 2017 at 12:27 AM, Nikoleta Misheva <nith...@gmail.com > > wrote: > >> When I send message the websocket disconnects. I am able to get the >> message, but I can't proceed f

Django-channels disconnects right after sending a message

2017-02-21 Thread Nikoleta Misheva
When I send message the websocket disconnects. I am able to get the message, but I can't proceed further since disconnect is supposed to delete the room. I tested it with basic prints after every statement and it disconnects right after the receiver gets the message because everything that is

Re: PostgreSQL get_object_or_404 matching query does not exist when indeed it does?

2017-02-18 Thread Nikoleta Misheva
I missed that it is message.user.username when pasting it here but anyway it does not work. I checked it's class and it is str събота, 18 февруари 2017 г., 21:47:27 UTC+2, Daniel Roseman написа: > > On Saturday, 18 February 2017 17:37:49 UTC, Nikoleta Misheva wrote: >> >

PostgreSQL get_object_or_404 matching query does not exist when indeed it does?

2017-02-18 Thread Nikoleta Misheva
I am querying PostgreSQL using *get_object_or_404 * but it throws and exception *PairUsers matching query does not exist *and after that *During handling of the above exception, another exception occurred:django.http.response.Http404: No PairUsers matches the given query *when indeed I

Re: Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-06 Thread Nikoleta Misheva
likely need a consumer tied to `websocket.disconnect` that deletes > rows from the databases as sockets disconnect. > > On Sun, Feb 5, 2017 at 6:58 AM, Nikoleta Misheva <nith...@gmail.com > > wrote: > >> So the problem is with deleting the record and while it is not del

Re: Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-05 Thread Nikoleta Misheva
февруари 2017 г., 10:29:36 UTC+2, Nikoleta Misheva написа: > > I managed to run it somehow but now it says that the socket closed before > it was able to connect and from the logs I got > ERROR - worker - Error processing message with consumer play.consumers. > ws_connect: > >

Re: Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-05 Thread Nikoleta Misheva
en you and the server doesn't understand WebSockets. Given it's > localhost in this case, have you installed channels and make sure it's in > INSTALLED_APPS, then run `runserver`? > > Andrew > > On Sat, Feb 4, 2017 at 3:20 AM, Nikoleta Misheva <nith...@gmail.com > >

Re: Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-04 Thread Nikoleta Misheva
er see "Unexpected response code: 200" it means that something > between you and the server doesn't understand WebSockets. Given it's > localhost in this case, have you installed channels and make sure it's in > INSTALLED_APPS, then run `runserver`? > > Andrew > > On

Re: Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-04 Thread Nikoleta Misheva
n it's > localhost in this case, have you installed channels and make sure it's in > INSTALLED_APPS, then run `runserver`? > > Andrew > > On Sat, Feb 4, 2017 at 3:20 AM, Nikoleta Misheva <nith...@gmail.com > > wrote: > >> When I use django-channels with reconnecting w

Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-04 Thread Nikoleta Misheva
When I use django-channels with reconnecting websocket without redis backend and try to connect to ws://localhost:8000/play it returns Error during WebSocket handshake: Unexpected response code: 200 But when I use the redis backend and even

Wiring django-channels to html without javascript?

2017-01-29 Thread Nikoleta Misheva
I used the console to test my app but now I want to wire my django-channels app to the html but I don't know any JS so is it possible to wire django-channels to html without using javascript? If it is possible how? Here you

Re: Django-channels save reply channel to django model field?

2017-01-19 Thread Nikoleta Misheva
y_channel_name). > > Hope that helps, > Andrew > > On Thu, Jan 19, 2017 at 6:57 AM, Nikoleta Misheva <nith...@gmail.com > > wrote: > >> Hello, sorry to bother you but how do you make a django-channels Channel >> field in a Django model? I tried to use Foreig

Django-channels save reply channel to django model field?

2017-01-19 Thread Nikoleta Misheva
Hello, sorry to bother you but how do you make a django-channels Channel field in a Django model? I tried to use ForeignKey and ForeignObject but doesn't do the work. Thank you in advance :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Django-channels connecting 2 random people

2017-01-14 Thread Nikoleta Misheva
e). > > Your message received code can then look up the other side in the table > and forward it to that reply channel. I don't think groups would help too > much here. > > Andrew > > On 14 Jan 2017 12:41, "Nikoleta Misheva" <nith...@gmail.com > > wrote:

Django-channels connecting 2 random people

2017-01-14 Thread Nikoleta Misheva
Hello fellows, I started to go into channels and I saw the example for multiplex chat but it is not excactly what I want and I will be happy if someone can point me in the right direction or show me an example. So I want to have many dynamically created rooms than will be destroyed after the