localization in python code (views, models etc)

2011-07-11 Thread stan
Hi, Maybe I missed something, but I didn't found any explanation in the doc about how to localize a date or a number in the python code side. Maybe I am totally wrong about wanting to do that but I can't see a solution to resolve the following problem in the template (where localization should be

Re: localization in python code (views, models etc)

2011-07-11 Thread Lachlan Musicman
On Mon, Jul 11, 2011 at 18:58, stan wrote: > Hi, > > Maybe I missed something, but I didn't found any explanation in the > doc about how to localize a date or a number in the python code side. > Maybe I am totally wrong about wanting to do that but I can't see a > solution to resolve the following

Re: localization in python code (views, models etc)

2011-07-11 Thread stan
On Jul 11, 11:36 am, Lachlan Musicman wrote: > On Mon, Jul 11, 2011 at 18:58, stan wrote: > > Hi, > > > Maybe I missed something, but I didn't found any explanation in the > > doc about how to localize a date or a number in the python code side. > > Maybe I am totally wrong about wanting to do

Re: Decision for ticket #6362 - Remove blank spaces with strip when validating the data

2011-07-11 Thread Dmitry Gladkov
I don't see what's wrong with 'strip' attribute for models.Field, we've already non database-related 'blank' attribute, but I agree that it does not solve the general problem. What I'm thinking about is something like django.core.validators [1], but called 'processors' with the only and main diffe

Re: localization in python code (views, models etc)

2011-07-11 Thread Sergiy Kuzmenko
On Mon, Jul 11, 2011 at 7:02 AM, stan wrote: > > > On Jul 11, 11:36 am, Lachlan Musicman wrote: > > On Mon, Jul 11, 2011 at 18:58, stan wrote: > > > Hi, > > > > > Maybe I missed something, but I didn't found any explanation in the > > > doc about how to localize a date or a number in the python

Bizarre behaviour using django.test.client.Client.put

2011-07-11 Thread Oliver Beattie
Hi, I don't really know if what I'm posting is expected behaviour or not (hence not going straight to Trac), but I am seeing very odd behaviour using django.test.client.Client.put. The documentation describest

Re: Bizarre behaviour using django.test.client.Client.put

2011-07-11 Thread Oliver Beattie
I should clarify, this is only an issue when wanting to put data *both* in the query string and the request body. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/dja

Re: Form Rendering API Proposal

2011-07-11 Thread Gregor Müllegger
Hi Chris, thanks Carl, 2011/7/9 Carl Meyer : > Hi Chris, > > On 07/08/2011 04:00 PM, Chris Beaven wrote: >> ... >> I guess this means that rendering a field as "hidden" in the template is >> also out, since this needs to modify more than just the field's >> representation (specifically, non_field_

Djangopeople.net status

2011-07-11 Thread Bruno Renié
Hi fellow Django devs, I'd like to talk about a site that all of you probably know: djangopeople.net. The site has originally been developed by Simon Willison and Natalie Downe and is a very useful part of the different sites connecting the Django community. Recently, however, Simon and Natalie b

Re: Form Rendering API Proposal

2011-07-11 Thread Chris Beaven
On Tuesday, July 12, 2011 4:17:08 AM UTC+12, Gregor Müllegger wrote: > > Hm, hidden fields are something that I have not taken into account after > our > latest iteration. I think they are a bit special-cased and might need > attention even if we drop changing-the-widget feature. > Agreed, it'd

Re: Djangopeople.net status

2011-07-11 Thread Russell Keith-Magee
On Tue, Jul 12, 2011 at 7:00 AM, Bruno Renié wrote: > Hi fellow Django devs, > > I'd like to talk about a site that all of you probably know: djangopeople.net. > > The site has originally been developed by Simon Willison and Natalie > Downe and is a very useful part of the different sites connecti

Re: localization in python code (views, models etc)

2011-07-11 Thread Lachlan Musicman
On Mon, Jul 11, 2011 at 21:02, stan wrote: >> >> > class Book(models.Model): >> >    title = models.CharField(max_length=120) >> >    date_published = models.DateField() >> >> Big tip - if you *actually* need a date_published field, use a string :) > > Sorry, but I don't get it. > > You mean a Cha

Re: localization in python code (views, models etc)

2011-07-11 Thread stan
On Jul 12, 2:21 am, Lachlan Musicman wrote: > On Mon, Jul 11, 2011 at 21:02, stan wrote: > > >> > class Book(models.Model): > >> >    title = models.CharField(max_length=120) > >> >    date_published = models.DateField() > > >> Big tip - if you *actually* need a date_published field, use a stri