Re: Optimal query for related names in onetomany or manytomany using Django Queryset

2018-02-03 Thread Furbee
You can set up an index on multiple field, as well, so if you’re searching for As without a reference from B or C, using the index_together operative in the class Meta for that model. I’m not completely sure, but I think this may speed up you query time. Thanks, Furbee On Saturday, February 3,

Re: Channels with django signals

2018-02-03 Thread John Wayne
Oh I saw that you fixed it recently. Thank you anyway :) On Sunday, February 4, 2018 at 1:22:58 AM UTC+1, Andrew Godwin wrote: > > Hi John, > > This is fixed in the asgiref master branch, I should be releasing it soon. > > Andrew > > On Sat, Feb 3, 2018 at 4:14 PM, John Wayne

Django 2.0.2 not work with Jinja 2 (admin side)

2018-02-03 Thread Николай Инкогнито
/admin/ - raise error -- 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

Re: Channels with django signals

2018-02-03 Thread Andrew Godwin
Hi John, This is fixed in the asgiref master branch, I should be releasing it soon. Andrew On Sat, Feb 3, 2018 at 4:14 PM, John Wayne wrote: > Hi everyone, > > I am trying to send a channels message from a django signal. The problem > ist that the signal function is

Channels with django signals

2018-02-03 Thread John Wayne
Hi everyone, I am trying to send a channels message from a django signal. The problem ist that the signal function is not async. So I tried to use the AsyncToSync wrapper. But it seems this is not possible as the signal handler is run by a thread and has no event loop. ...

Re: Issues with POST query in Django

2018-02-03 Thread Jani Tiainen
Hi. Unfortunately you did't provided any code and actual error (complete traceback) so if you please provide them it would be even possible to help you. 3.2.2018 16.31 kirjoitti: > Hi, > I am facing a problem in django . I have a custom authentication function >

Issues with POST query in Django

2018-02-03 Thread mohit . dubey
Hi, I am facing a problem in django . I have a custom authentication function which i am using with CBV to authenticate. In a specific CBV I have not used the authenticate function still it is going into authenticate function and raising an error. Any help is welcomed. -- You received this

Re: App 'polls' could not be found. Is it in INSTALLED_APPS?

2018-02-03 Thread Daniel Hepper
Well, did you check if the app „polls“ is in INSTALLED_APPS? Assuming you are refering to the step „Activating models“ in the Part 2 of the tutorial, make sure you made the correct changes in your settings.py. https://docs.djangoproject.com/en/2.0/intro/tutorial02/#activating-models You can

Re: Optimal query for related names in onetomany or manytomany using Django Queryset

2018-02-03 Thread Vijay Khemlani
Well, you should've said that in the first post. First I would try with a saner DB (Postgres) Also I don't think 300 ms is particularly bad, but in that case start looking into caching alternatives (e.g. memcached) or a search index (e.g. ElasticSearch) On Sat, Feb 3, 2018 at 3:14 AM, Web

Re: Django Channels 2.0.0 groups

2018-02-03 Thread Ahmed Magdy
Finally, I think reverting back to channels 1.x.x was much easier for you and me. ^^ Really appreciate what you did and the project, now I can implement the chatting functionality for my graduation project. On Saturday, February 3, 2018 at 9:47:04 AM UTC+2, Andrew Godwin wrote: > > Ah, yes, it