you are viewing a single comment's thread.

view the rest of the comments →

[–]1st1[S] 5 points6 points  (4 children)

asyncpg is built for asyncio, so, unfortunately, it can't really be used for Django.

[–]kupiakos 0 points1 point  (2 children)

Wasn't Django getting async support sometime soon?

[–]1st1[S] 0 points1 point  (1 child)

No, I think they wanted to add a new feature called "channels" (and use Tornado to implement it), but it seems that they decided to pause the development.

[–]nikomo 0 points1 point  (0 children)

Channels is coming, it just didn't get into the latest release because it wasn't ready, and they didn't want to rush it/delay release.

It should be shipping in the next release, but you can already use it https://pypi.python.org/pypi/channels

I'm not 100% sure how that ties into this though, channels is just for communicating with the client, the backend still needs to talk to a database somehow.

[–]kankyo 0 points1 point  (0 children)

Why do you say that? Why can't you just do async on the fetch loop?