Orkut Gmail Agenda Docs Web mais »
Grupos visitados recentemente | Ajuda | Acessar
Página inicial dos Grupos do Google
Mensagem sobre o tópico Formatos de data

Visualizar analisado - Mostrar apenas o texto da mensagem ??

Received: by 10.36.50.17 with SMTP id x17mr57718nzx.1180659023676;
        Thu, 31 May 2007 17:50:23 -0700 (PDT)
Return-Path: <mari...@gmail.com>
Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.238])
        by mx.google.com with ESMTP id v28si12353nzb.2007.05.31.17.50.22;
        Thu, 31 May 2007 17:50:23 -0700 (PDT)
Received-SPF: pass (google.com: domain of mari...@gmail.com designates 66.249.82.238 as permitted sender)
DomainKey-Status: good (test mode)
Received: by wx-out-0506.google.com with SMTP id t16so356640wxc
        for <django-brasil@googlegroups.com>; Thu, 31 May 2007 17:50:22 -0700 (PDT)
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed;
        d=gmail.com; s=beta;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=tAqeyaB2Fflx6GUpqy401DJrjXkwhpPdvIDGPJD0zrejAEOLSPm41YE90BuEKMtcqQ+QDXM2Td/tK3LdADv4thmgG8mp4I/tmAWVtHV2AXXh/DycNDck17eO/E+o50aoDu+RyU6bZc2LVQ0487vqk82zo7v32YKBemA9z678CnU=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=CrpndQ834nFtbwEHxRIQx+Ihu0RqTPRbES2uJP370iz7O9EMBHr2CN2BYlm/mTutgZMDQDw9FRAqsVoO4//KWe4cBhDwAltb8FBjcFbBlf+NZda4z2Gxzgyy6uFmdV+BW7pB+voYZ0KcUL+f422XR+C1ax+dO/F1/DHfxFUdy3Y=
Received: by 10.70.39.5 with SMTP id m5mr1908645wxm.1180659022562;
        Thu, 31 May 2007 17:50:22 -0700 (PDT)
Received: by 10.70.15.20 with HTTP; Thu, 31 May 2007 17:50:22 -0700 (PDT)
Message-ID: <5d1dc4bb0705311750x6a7664afw7a845c22a520f17e@mail.gmail.com>
Date: Thu, 31 May 2007 21:50:22 -0300
From: "Marinho Brandao" <mari...@gmail.com>
To: django-brasil@googlegroups.com
Subject: Re: [django-brasil] Formatos de data
In-Reply-To: <605511e20705311619k5bd99be8t7d6599c9ecde0806@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
References: <605511e20705311619k5bd99be8t7d6599c9ecde0...@mail.gmail.com>

nas exibi=E7=F5es de data, eu costumo deixar tudo sem formata=E7=E3o nenhuma=
 e
s=F3 no template eu coloco assim:

{{ campo_data|date:"d/m/Y H:i:s" }}

acho que assim fica mais coeso e limpo

Em 31/05/07, Luciano Adamiak<lucianoadam...@gmail.com> escreveu:
> Pessoal...
>
> Qual o jeito mais "clean" de se formatar datas no Django?
>
> Configurar o DATE_FORMAT no settings.py e usar
> format(form.clean_data['campo_date'],DATE_FORMAT) nas views?
>
> Tem algum jeito melhor? onde eu n=E3o precise fazer o format em todos os
> campos dos forms?
>
> []'s
>
>  >
>


--=20
Jos=E9 M=E1rio, M=E1rio ou Marinho

http://del.icio.us/marinho
http://www.flickr.com/photos/marinho/
http://marinho.wordpress.com

Criar um grupo - Grupos do Google - Página inicial do Google - Termos de Uso - Política de Privacidade
©2009 Google