Get fields annotated to a QuerySet

2018-04-05 Thread Matthew Pava
I have a QuerySet that I annotated fields based on some conditional logic, and then I pass that QuerySet to another function. In that function, I'd like to retrieve a list of all the annotated fields on the QuerySet. Is there any way to do that? -- You received this message because you are s

Pant builds with django

2018-04-05 Thread Allan Nava
Is possible use pant builds with django? -- 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 e

How to use Graphviz/Networkx in django?

2018-04-05 Thread shawnmhy
Hi everyone, If I have three models and I successfully displayed the data using templates and views, how can I use graphviz or networkx to draw graph using the data that I displayed? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

Re: Mysql is gone away auth middleware channels 2

2018-04-05 Thread Matteo Lucchesi
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/lat

Re: Mysql is gone away auth middleware channels 2

2018-04-05 Thread Andrew Godwin
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 wr

Re: Django blocking on writing logs

2018-04-05 Thread David Bauer
No I gave up on Django, don't know what it does, and don't have the money to take a class to learn more, so I just gave up for right now, when I see some money I might be able to take a class On Thu, Apr 5, 2018 at 9:51 AM, Daniel Arndt wrote: > Hi all, > > Although not explicitly mentioned anyw

Django blocking on writing logs

2018-04-05 Thread Daniel Arndt
Hi all, Although not explicitly mentioned anywhere, I've come to the conclusion Django blocks while writing logs with some handlers (it uses Python logging, https://docs.python.org/3/howto/logging-cookbook.html#dealing-with-handlers-that-block). I can't find anything that explicitly states Dja

Re: Django rest framework foreign key display details from table 1 to table 2

2018-04-05 Thread siva.gatti
did u get the solution for this if found send that to me -- 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 th

serializers

2018-04-05 Thread siva.gatti
how to add created_by_id to serializers in django rest rest frame work and created_by_id is stored in session when the user is logged in -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fr

Re: Working google maps widget

2018-04-05 Thread Cictani
Yes something like this but as a django-package so I can use it as a form field in admin and in my custom forms. django-geoposition requires jquery2, django-google-maps-widget requires complete GIS package (which I don't need) and django-location-field did not worked for some reason I still ha

Re: Mysql is gone away auth middleware channels 2

2018-04-05 Thread Matteo Lucchesi
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" >

Mysql is gone away auth middleware channels 2

2018-04-05 Thread Matteo Lucchesi
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" gr

Simple Django package - helps you send emails and activation emails from views.

2018-04-05 Thread Mateusz Kurowski
Hello! I am just learning Python and Django, as an exercise for: django views, python packaging, travis, tox, sphinx i made this simple repository with 2 classes that helps you send emails and activation-emails using django builtins. No extra dependencies Tested using hypothesis.. https://gith