Thank you very much

Il giorno giovedì 5 aprile 2018 19:14:35 UTC+2, Andrew Godwin ha scritto:
>
> You must do all database access through a synchronous function wrapped in 
> database_sync_to_async - you can't just call it directly on an asyncio 
> thread:
>
> http://channels.readthedocs.io/en/latest/topics/databases.html#database-sync-to-async
>
> Andrew
>
> On Thu, Apr 5, 2018 at 5:25 AM, Matteo Lucchesi <matt...@gmail.com 
> <javascript:>> wrote:
>
>> https://codeshare.io/5wlXNK
>>
>> Il giorno giovedì 5 aprile 2018 14:07:56 UTC+2, Matteo Lucchesi ha 
>> scritto:
>>>
>>> i've write a auth middleware for django channels :
>>>
>>> https://codeshare.io/aYnQmN
>>>
>>> but seem that use a persistent connection and after some hour i have the 
>>> erro "Mysql is gone away"
>>>
>>> Where is the 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...@googlegroups.com <javascript:>.
>> To post to this group, send email to django...@googlegroups.com 
>> <javascript:>.
>> 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/c8171fd2-a423-439e-b89c-813a747658a1%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/c8171fd2-a423-439e-b89c-813a747658a1%40googlegroups.com?utm_medium=email&utm_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/be3d75e1-4c6e-4c46-9b37-d90b4e697cbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to