Re: Using the Django development server for local subdomain development

2013-01-27 Thread Fabian Büchler
It's actually quite easy to test a subdomain setup with the run server and any web server like Apache or nginx. I'm commonly using nginx to do this, plus a few entries in my /etc/hosts file: 127.0.0.1 some.domain.localhost 127.0.0.1 other.domain.localhost And the nginx configuration

How does the {% trans %} tag choose translations?

2011-06-22 Thread Fabian Büchler
Hey everyone, got a little problem with the trans tag: In one of my apps, I've got a translation marker in a template saying "All dates", which is translated in the apps PO file for German (de) to "Alle Termine". But on the frontend I see "Alle Daten", which comes from the German translation file

Re: How does the {% trans %} tag choose translations?

2011-06-22 Thread Fabian Büchler
Thanks Bruno, that was helpful. 2011/6/22 bruno desthuilliers : > Not a direct answer, but this might help you understanding what's > going on: > > https://docs.djangoproject.com/en/1.3/topics/i18n/deployment/#how-django-discovers-translations > > -- > You received this message because you are sub

Slow query. Any way to speed things up?

2011-03-28 Thread Fabian Büchler
Hello everyone, maybe someone can help me to speed up a quite slow query: I've got two models (only the important stuff outlined here): Events and EventDates class Event(models.Model): > status = models.SmallIntegerField(verbose_name=_(u"status"), > choices=STATUS_CHOICES, default=ST

Re: Slow query. Any way to speed things up?

2011-03-29 Thread Fabian Büchler
t dates") > ordering = ('event', 'date') > Regards, Fabian 2011/3/28 Javier Guerra Giraldez > On Mon, Mar 28, 2011 at 7:52 AM, Fabian Büchler > wrote: > > > > Events have an EventOnlineManager with a "to_expire" me

Re: Slow query. Any way to speed things up?

2011-03-29 Thread Fabian Büchler
"events_event"."legacy_id", > "events_event"."id", duplicate fields > starting here > "events_event"."uid", > "events_event"."slug_de", >

Re: Slow query. Any way to speed things up?

2011-03-29 Thread Fabian Büchler
t;."status", "events_event"."id", > "events_event"."title_de", "events_event"."status" HAVING > MAX("events_eventdate"."date") < 2011-03-29 ORDER BY > "events_event"."title_de" ASC,

Re: Slow query. Any way to speed things up?

2011-03-29 Thread Fabian Büchler
Hello Matthias, 2011/3/29 Matthias Kestenholz > On Tue, Mar 29, 2011 at 2:27 PM, Fabian Büchler > wrote: > > I've analyzed the query using pgAdmin and it seems the most time is being > > spent with a the GroupAggregate. > > This is because of so many columns being