[python-nl] Nederlandse Datumvelden en Komma's in Django's Forms

dimitri pater - serpia dimitri.pater at gmail.com
Wed May 13 01:27:27 CEST 2009


Hoi Armijn,

misschien heb ik de vraag van de OP niet goed begrepen. Maar op deze
wijze kun je toch echt een Nederlandse notatie voor een DateField in
een model (http://docs.djangoproject.com/en/dev/ref/models/fields/#datefield)
in een template weergeven
(http://docs.djangoproject.com/en/dev/ref/templates/builtins/#ttag-now)
met behulp van het date filter
(http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date).
Wat bedoel je met "toch echt fout"?

groet,
dimitri

2009/5/13 Armijn Hemel <armijn op uulug.nl>:
> On Tue, 2009-05-12 at 21:11 +0200, dimitri pater - serpia wrote:
>> in settings.py
>> LANGUAGE_CODE = 'nl'
>> in je template:
>> {{ datum|date:"l d M" }} wordt dinsdag 12 Mei
>
> Dat hoop ik niet, want dat is in het Nederlands toch echt fout :-P
>
> armijn
>
> --
> -------------------------------------------------------------------------
> armijn op uulug.nl | http://www.uulug.nl/ | UULug: Utrecht Linux Users Group
> -------------------------------------------------------------------------
>
> _______________________________________________
> Python-nl mailing list
> Python-nl op python.org
> http://mail.python.org/mailman/listinfo/python-nl
>



-- 
---
You can't have everything. Where would you put it? -- Steven Wright
---
please visit www.serpia.org


More information about the Python-nl mailing list