[django-channels] I want to use aioredis connection pool ,not create new connection in every AsyncWebsocketConsumer.connect .Where can I put the code.

2019-05-13 Thread CrazyNPC
Hello, Now I create new connection in connect event every time, code like this async def connect(self): self.redis = await aioredis.create_redis( 'redis://localhost',encoding='utf-8') async def disconnect(self, close_code): await self.redis.close() I need something like self.

[Channels] Maybe about daphne?Or not ,I'm not sure.

2017-11-01 Thread CrazyNPC
I run daphne in docker container on AWS ECS behind AWS ALB. I found that, when I configure secure group of the EC2 instance in the ECS cluster to Allow Anyway, the site is ok, but configure to only Allow the secure group of ALB, then the flow can't reach. Curiously, when I use the same config a

Re: [Django Channels] Can I use the same redis server as message backend and cache backend the same time?

2017-09-21 Thread CrazyNPC
long as both sites have a different prefix setting > > In both cases I would recommend using separate Redis servers though. They > have very low RAM usage and it's good practice to run them separately. > > Andrew > > On Sat, Aug 5, 2017 at 9:35 PM, CrazyNPC > > wrot

[Django Channels] Can I use the same redis server as message backend and cache backend the same time?

2017-08-05 Thread CrazyNPC
I have 2 questions. 1.Can I use the same redis server as message backend and cache backend the same time? 2.Can I use the same redis server as message backend for different website they both serve by channels ? -- You received this message because you are subscribed to the Google Groups "Djan

How can I filter the result by datediff in the admin site,and then save into excel

2012-09-17 Thread CrazyNPC
I'm a fresh man.I need help. Now,I need filter the result by datediff in the admin site,and then write them into excel. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/