Django Channels: Implementing an HTTP endpoint for server-sent events.

2023-04-18 Thread Gabriel Morales
In the consumer example that Django Channels provides (attached image) about implementing an HTTP endpoint for Server-sent events (SSE), it leaves me with a doubt: If I implement an endpoint with that consumer, connect to it from a client, and then disconnect, it throws the following error: [

Re: How to filter *every* query on django?

2018-08-18 Thread Ángel Gabriel Morales Acosta
rm_kwargs.into kwargs I send owner(on this case user objects) and I received into forms.py on *def __init__* at this moment I known who is the user and can apply my filters over this user. I hope can help you. *---* *Ángel Gabriel Morales Acosta* Email: angel.gabriel...@gmail.com On Sat, Aug 18, 2018

Re: How to filter *every* query on django?

2018-08-17 Thread Ángel Gabriel Morales Acosta
Hi Rohit, I think this can help you : https://stackoverflow.com/questions/40206569/django-model-doesnt-declare-an-explicit-app-label Check the arrowed solution. *---* *Ángel Gabriel Morales Acosta* Email: angel.gabriel...@gmail.com On Fri, Aug 17, 2018 at 4:53 PM Rohit Rana wrote: > I h

Re: How to filter *every* query on django?

2018-08-17 Thread Ángel Gabriel Morales Acosta
Hi Bro.·. If I understand you, you can this: def any_func(..., *request*): ... .filter(created_user=*request*.user) more about : https://docs.djangoproject.com/en/2.1/ref/request-response/ Cheers Bro.·. *---* *Ángel Gabriel Morales Acosta* Email: angel.gabriel...@gmail.com On Fri