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

Re: Sampling of the two models by matching fields.

2011-09-29 Thread Satan Study Django
Anybody? On 27 сен, 18:53, Satan Study Django <satan.come.and.kill.your.family.an...@gmail.com> wrote: > Good day. > To the case. > There are some models (simplified form): > > class Group (models.Model): >      name = models.CharField () > > class Pers

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 ()

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

Re: Django orm group_by difficulties

2011-05-05 Thread Satan Study Django
;ja...@jacobian.org> wrote: > On Wed, May 4, 2011 at 9:23 AM, Satan Study Django > > <satan.come.and.kill.your.family.an...@gmail.com> 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

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)