Thank you Dylan! Now I see what's going on there.
Best,
Chunjing
On Saturday, February 24, 2018 at 4:56:10 PM UTC-8, Chunjing Jia wrote:
>
> Hi,
>
> I am running Django 2.0 tutorial01 for polls. I am seeing this error
> message
>
> Using the URLconf defined in mysite.urls, Django tried these UR
Thank you so much for the detailed explanation.
1) I now understand where my error was - the custom channel I used was
passing events to a background worker that was not related to the websocket
consumer. This also answers my question about how channel names must be
included in the runworker co
Kudos for you and all contributors! It’s really amazing.
I’m going to send few PRs to django-channels as a payback :)
Cheers,
Tom
> 25. 2. 2018 v 19:46, Andrew Godwin :
>
> No problem - glad everything else seems to work alright! Getting async
> testing working well has been a long, hard ro
No problem - glad everything else seems to work alright! Getting async
testing working well has been a long, hard road :)
Andrew
On Sun, Feb 25, 2018 at 10:37 AM, Tomáš Ehrlich
wrote:
> Of course!
>
> It works now perfectly, thank you. Sorry I missed that in docs.
>
> Cheers,
>Tom
>
> 25. 2
Of course!
It works now perfectly, thank you. Sorry I missed that in docs.
Cheers,
Tom
> 25. 2. 2018 v 19:12, Andrew Godwin :
>
> I think the change you need to make is swapping in database_sync_to_async
> rather than sync_to_async - see here:
> http://channels.readthedocs.io/en/latest/top
I think the change you need to make is swapping in database_sync_to_async
rather than sync_to_async - see here:
http://channels.readthedocs.io/en/latest/topics/databases.html
Andrew
On Sun, Feb 25, 2018 at 7:14 AM, Tomáš Ehrlich
wrote:
> Here's the gist (https://gist.github.com/tricoder42/
> af
I've written an email marketing analytics app in Django that I believe will
scale. I haven't released anywhere yet though. You might search the web for
"write heavy Django" since most analytics is write heavy.
On February 25, 2018 9:12:24 AM CST, Raj wrote:
>Dear All,
>
>Can we use Django for
And while we're at it, I'm going to toss out another opinion.
I've found it extremely beneficial _for me_ to not try to relate channels
2.0 to channels 1.1. I'm approaching it as if I'm learning about a
completely separate package - working from a clean slate so-to-speak.
Ken
On Sunday, Februa
Hi Raj,
Can you please give us a little background on what is industrial analytics?
Thank you,
Etienne
Le 2018-02-25 à 10:12, Raj a écrit :
Dear All,
Can we use Django for Industrial Analytics ? . Where data volume is
huge & with frequency in Mill seconds.
Can someone name some example
In so far as you are talking about background worker tasks, you are correct.
But those statements do not pertain to a websocket consumer that accepts
connections from a browser. You can run an application without ever
creating a worker task. (Again, I'll refer you to the channels-examples app
f
Before I get to the guts of my answer, I'd suggest you get Andrew Godwin's
"channels-examples" application and read it completely until you believe
you understand everything that it's doing.
(https://github.com/andrewgodwin/channels-examples)
Now, to the extent of my understanding, the "Channel
I would do something simitar to:
class SongListView(ListView):
model = Song
context_object_name = 'songs'
template_name = 'songs/song_list.html'
def get_queryset(self):
qs = super().get_queryset()
name = self.request.get("name")
if name:
qs
Dear All,
Can we use Django for Industrial Analytics ? . Where data volume is huge
& with frequency in Mill seconds.
Can someone name some examples of such industrial analytics application
developed using Django.
Thanks,
Raj
--
You received this message because you are subscribed to the Go
Here's the gist
(https://gist.github.com/tricoder42/af3d0337c1b33d82c1b32d12bd0265ec) with
consumer.
Dne neděle 25. února 2018 15:37:19 UTC+1 Tomáš Ehrlich napsal(a):
>
> Hello,
> I’ve just migrated my project to django-channels 2.x. Thanks to everyone
> involved!
>
> I’m trying to write a test
Hello,
I’ve just migrated my project to django-channels 2.x. Thanks to everyone
involved!
I’m trying to write a test for a consumer.
I have a post_save signal receiver, which sends a message to a group. As I
understand,
I need to wrap `group_send` with `async_to_sync` because django signals can’
Hi,
"Is it safe"? Well that is your call to make. Depending number of songs it
might not be meanful for enduser to see whole list which leads to things
like pagination and restricting maximum number of returned entries.
On Sun, Feb 25, 2018 at 8:10 AM, tango ward wrote:
> thanks for the suggest
While I'm at it, would you mind confirming if I understand the following
changes in channels 2.0 correctly ?
1) Channel names are not auto-detected and must be specified when running a
worker
2) *runserver* no long starts up a worker by default, this has be done
manually
On Sunday, February 25
Thanks for the update - I think I understand now.
I updated my channel name routing and pointed it at the Websocket consumer:
"channel": ChannelNameRouter({
"user-notifications": TestWebsocketConsumer,
})
Moved the message handler into *TestWebsocketConsumer:*
*from
18 matches
Mail list logo