Django & postgresql schemata

2007-09-03 Thread Giuseppe Ciotta
Does Django support postgresql schema different from the default (public)? I'm interfacing with a legacy database, using this model definition: class Box(models.Model): serial = models.CharField(max_length=25, primary_key=True) class Meta: db_table = u'boxes.box' verbose

Re: Django & postgresql schemata

2007-09-03 Thread Giuseppe Ciotta
> class Box(models.Model): > serial = models.CharField(max_length=25, primary_key=True) > > class Meta: > db_table = u'boxes.box' > verbose_name_plural = "Boxes" Well, I should add that inspecting the raw sql reveals that django is using this kind of query: 'select field

Re: elsif in templates?

2007-09-24 Thread Giuseppe Ciotta
Is there a real reason behind this or just this is to be implemented in the future? On 9/24/07, James Bennett <[EMAIL PROTECTED]> wrote: > > On 9/24/07, A. Reppel <[EMAIL PROTECTED]> wrote: > > does the template language have a elsif clause for if and if{not}equal? > > No, just nest {% if %}, {%

Re: elsif in templates?

2007-09-24 Thread Giuseppe Ciotta
Well, I assume an "elif" should not be considered "advanced logic", but basic branching functionality, as "if" and "else" are. Not allowing such functionality leaves space for ugly and unreadable code nesting. On 9/24/07, Jeremy Dunck <[EMAIL PROTECT