Re: Signals - Need a signal after annotations are added

2019-02-25 Thread samarth parashari
django signal are work like database trigger.

On Sun, Feb 24, 2019 at 12:35 PM Mike Brown  wrote:

>  I think this is a request for a signal that fires after those attributes
>> have been added to the model instances.
>>
>
> Yes.
>
>
> On Saturday, February 23, 2019 at 12:08:43 PM UTC-8, Mike Brown wrote:
>>
>> I have a situation where I need a signal for when a model object is fully
>> instantiated.
>>
>> Currently, there are signals for pre_init and post_init. However, when
>> post_init is fired,
>> the object is not fully 'initialized' in the sense that annotations have
>> not yet been added to the object.
>>
>>
>> In django.db.models.query there is class ModelIterable(BaseIterable)
>>
>> In this class there is code to run a query and then apply annotations.
>>
>> Should there be a new signal added to Django that is fired after the
>> annotations are complete and the object is fully instantiated?
>>
>> Maybe a signal called 'instantiation_complete'?
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/8081596b-26c8-4380-b292-2ba1e77ae61a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAGQzZJV-vvChvDy8n60qgkSc-J-a56AJABC8anpSXZ2QM7q%2BVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Trying to transfer some data in Sec-websocket-protocol. But the browser breaks the connection with error ----Error during WebSocket handshake: Sent non-empty 'Sec-WebSocket-Protocol' header but no

2019-03-05 Thread samarth parashari
Try django channels for websocket and handshaking

On Wed, 6 Mar, 2019, 12:02 AM Abhishek Chauhan, 
wrote:

> Error during WebSocket handshake: Sent non-empty 'Sec-WebSocket-Protocol'
> header but no response was received. How can i reply to subprotocol request
> so that the browser does not give me the above error.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/f845ccd0-ae77-4ba7-aaef-352cc921f431%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAGQzZJVdAfaZRq-WVUFBi3Gxsj5DzY3DgUJjqxchcbgZ8nJiEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.