[django-channels] I want to use aioredis connection pool ,not create new connection in every AsyncWebsocketConsumer.connect .Where can I put the code.
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.channel_layer ,using pool connection across every consumer. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5ff98543-d966-44be-aad3-96fb6251b0f6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Channels] Maybe about daphne?Or not ,I'm not sure.
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 and code , but with gunicore is ok. So, my question is there some special setting in daphne about this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/741266c0-92df-4fa0-93bd-01d43308b763%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Django Channels] Can I use the same redis server as message backend and cache backend the same time?
Thank you! And your channels! Excellent project! On Saturday, August 5, 2017 at 8:07:41 PM UTC+8, Andrew Godwin wrote: > > 1. You can - Channels namespaces itself away from most keys you might use > (and you add a custom prefix with the "prefix" option). > > 2. Yes, as 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 <nianpe...@126.com > > wrote: > >> 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 >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users...@googlegroups.com . >> To post to this group, send email to django...@googlegroups.com >> . >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/b566ca1c-6955-4b0f-825d-bdabaf78572b%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-users/b566ca1c-6955-4b0f-825d-bdabaf78572b%40googlegroups.com?utm_medium=email_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8365150d-e180-4fbe-a02b-8384ccb7d5a3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Django Channels] Can I use the same redis server as message backend and cache backend the same time?
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 "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b566ca1c-6955-4b0f-825d-bdabaf78572b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
How can I filter the result by datediff in the admin site,and then save into excel
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/d/msg/django-users/-/BmG2HimNym0J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.