Production errors

2012-06-18 Thread Satan Study Django
Hi. As said in the https://docs.djangoproject.com/en/1.4/howto/error-reporting/ production server with "DEBUG = False" will send "Unhandled exception" errors to ADMINS and it's great. But besides it will return http error code 200 and if I'd make some http check for my service, like nagios check_

Sampling of the two models by matching fields.

2011-09-27 Thread Satan Study Django
Good day. To the case. There are some models (simplified form): class Group (models.Model): name = models.CharField () class Person (models.Model): name = models.CharField () groups = models.ManyToManyField (Group) class Event (models.Model): name = models.CharField () g

Re: Sampling of the two models by matching fields.

2011-09-29 Thread Satan Study Django
Anybody? On 27 сен, 18:53, Satan Study Django wrote: > Good day. > To the case. > There are some models (simplified form): > > class Group (models.Model): >      name = models.CharField () > > class Person (models.Model): >      name = models.CharField () >      g

Django orm group_by difficulties

2011-05-04 Thread Satan Study Django
Hi all. There was a need for group_by (as I am inclined to assume), and all else fails. Models: class States (models.Model): state = models.CharField (max_length = 70) class Person (models.Model): name = models.CharField (max_length = 100) login = models.CharField (max_length = 30) c

Re: Django orm group_by difficulties

2011-05-05 Thread Satan Study Django
tate') On 4 май, 23:46, Jacob Kaplan-Moss wrote: > On Wed, May 4, 2011 at 9:23 AM, Satan Study Django > > wrote: > > I can also use the direct sql query in the code. But on cellular it > > level does not seem right -) > > Well, if it were me, I'd just us

Aggregation annotate question.

2011-05-05 Thread Satan Study Django
Hi. I've some question about aggregation annotate functions, like Max. I don't realy like the queries it makes. Let me explain. Models: class Person (models.Model): name = models.CharField (max_length = 100) login = models.CharField (max_length = 30) class Home (models.Model): person =