Re: Django detects HTTP Accept-Language header in case-sensitive manner

2014-09-28 Thread Apostolos Bessas
On Sat, Sep 27, 2014 at 3:13 PM, Ramiro Morales wrote: > > I wonder if this also has implications for checking whether a given > > locale is present on the system. It looks to me like we also do this > > case-sensitively right now, but we should do it case-insensitively. This > > might be a bit o

Re: Django detects HTTP Accept-Language header in case-sensitive manner

2014-09-28 Thread Apostolos Bessas
Hi Wayne, On Mon, Sep 29, 2014 at 5:27 AM, Wayne Ye wrote: > > Per official I18n wiki: > https://docs.djangoproject.com/en/1.4/topics/i18n/translation/#using-translations-outside-views-and-templates > > I was using *translation.get_language()* method to retrieve the client > preferred language: >

Re: Feature request: serve_file() view in static app

2014-01-14 Thread Apostolos Bessas
Hi Rivo, So, if I understand this correctly, you need Django to figure out, whether you need to serve the static HTML page or not. In this case, you could use http://wiki.nginx.org/X-accel; that is, return a HttpResponse with the X-Accel-Redirect header pointing to the static file. I suppose thi

Re: New suggestion: ignoring certain fields on INSERTs and UPDATEs

2013-11-17 Thread Apostolos Bessas
Hi, I just opened a ticket in trac: https://code.djangoproject.com/ticket/21454. Thanks Russell for you comments. Regards, Apostolis On Wed, Nov 13, 2013 at 3:08 AM, Russell Keith-Magee wrote: > > On Tue, Nov 12, 2013 at 4:20 PM, Apostolos Bessas wrote: >> >> Hello, >>

New suggestion: ignoring certain fields on INSERTs and UPDATEs

2013-11-12 Thread Apostolos Bessas
Hello, I would like to ask, whether the following feature should/could be part of Django. There are cases that you would the database to handle certain fields. For instance, - set fields to their default value in the dabase-level (such as a `created` timestamp), - have the value of fields comput