Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group.send not working in realtime in django-nyt #48

Closed
ahmadhaidarahmad opened this issue Nov 30, 2017 · 4 comments
Closed

Group.send not working in realtime in django-nyt #48

ahmadhaidarahmad opened this issue Nov 30, 2017 · 4 comments

Comments

@ahmadhaidarahmad
Copy link

I changed the channels backend to redis server and when trying to poll a group.send from python it doesn't work in real time only works on page refresh and on socket.send from javascript any help please to let notifications show in realtime for users

@benjaoming
Copy link
Member

Hi @ahmadhaidarahmad - I'm sorry that you are having problems with your Redis setup.

You can't just say that something isn't working without providing the proper information to fix the issue. If there even is one.

It sounds like you should read up about django-channels and try to get the fundamental pieces working. If there is a specific issue in django-nyt, please report it here, outlining any tracebacks or wrongful behavior that you find.

http://channels.readthedocs.io/en/latest/

@ahmadhaidarahmad
Copy link
Author

Hi @benjaoming thank you for your response .i previously set django with channels and tried when i called the group(groupname).send from django view and from shell the ws-receive consumer worked properly and returned the sent data and the websocket on the browser acted when caling the group.send
But when i tried this with django nyt it didn't respond at realtime eventhough when trying to call group.send from python view and python shell knowing that the group name is true if you help me with this or just let me try it in a real time mode with an example . Very gratefull for you and sorry for taking your time

@benjaoming
Copy link
Member

There's an example app here: https://github.com/benjaoming/django-nyt/tree/master/test-project

@ahmadhaidarahmad
Copy link
Author

@benjaoming thank you a lot for your help i appreciate that i will try it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants