Thanks Mr. M
Even Tryed this
http://magpiebrain.com/blog/2005/08/21/formatting-dates-with-django/
Covered Both Example
But Unable to get any clue.
Unable to find any proper documentation / Code example for this
I am new to Django. Advanced Thank
Regards
On Mar 15, 12:23 pm, Malcolm Tredi
On Thu, 2007-03-15 at 06:51 +, mralokkp wrote:
> Kindly execute the code that i wish to do from django it self
>
>
>
> # Simplyfied date format change that I wish to use in django
> import datetime
> t = datetime.date.today()
> print t.strftime("%Y,%m,%d")
> print "My Required Date Format
Kindly execute the code that i wish to do from django it self
# Simplyfied date format change that I wish to use in django
import datetime
t = datetime.date.today()
print t.strftime("%Y,%m,%d")
print "My Required Date Format is "
print t.strftime("%d,%m,%Y")
Can't i call this program to djang
On Thu, 2007-03-15 at 05:58 +, mralokkp wrote:
> Thanks James but the spaces had been removed
> If Spaces it gives template error.
> If not it gives the former error
> says
> AttributeError at /registration/
> 'FormFieldWrapper' object has no attribute 'month'
> had resolved
Reading the error
Thanks James but the spaces had been removed
If Spaces it gives template error.
If not it gives the former error
says
AttributeError at /registration/
'FormFieldWrapper' object has no attribute 'month'
had resolved
But not able to change the date format still
I tryed to poke the source code of
On 3/14/07, mralokkp <[EMAIL PROTECTED]> wrote:
> Could not parse the remainder: | date: "F j Y"
No spaces before or after the bar, no spaces before or after the colon:
{{ somvar|date:"F j y" }}
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~-
> Thanks for that TIM A LOT
glad to help
> But stuck again
>
> AttributeError at /registration/
> 'FormFieldWrapper' object has no attribute 'month'
Well, somewhere in your code, you're asking for the "month"
attribute of an object. And that object doesn't have a "month"
property, so it rai
I don't know what you're trying to format, but is it actually a
datetime field?
On Mar 14, 1:05 pm, "mralokkp" <[EMAIL PROTECTED]> wrote:
> HELP PLZZ
>
> On Mar 14, 7:54 pm, "mralokkp" <[EMAIL PROTECTED]> wrote:
>
> > Thanks for that TIM A LOT
> > But stuck again
>
> > AttributeError at /registra
HELP PLZZ
On Mar 14, 7:54 pm, "mralokkp" <[EMAIL PROTECTED]> wrote:
> Thanks for that TIM A LOT
> But stuck again
>
> AttributeError at /registration/
> 'FormFieldWrapper' object has no attribute 'month'
> Request Method: GET
> Request URL:http://127.0.0.1:8000/registration/
> Exception Type: Att
Thanks for that TIM A LOT
But stuck again
AttributeError at /registration/
'FormFieldWrapper' object has no attribute 'month'
Request Method: GET
Request URL: http://127.0.0.1:8000/registration/
Exception Type: AttributeError
Exception Value: 'FormFieldWrapper' object has no attribute 'month'
Exc
> Case is this
> XXX | date "F J Y"
>
> It should read in the format that i choosen but instead of this gives
> this error
> TemplateSyntaxError at /mypage/
> Could not parse the remainder: | date "F J Y"
I've been bitten by this one several times. I haven't seen any
notes to the effect, b
Thanks for the quickest reply
But the problem remains the same
TemplateSyntaxError at /registration/
Could not parse the remainder: | date: "F j Y"
Request Method: GET
Request URL: http://127.0.0.1:8000/registration/
Exception Type: TemplateSyntaxError
Exception Value: Could not parse the remainde
Just like it told you: Syntax error.
You want
{{ | date:"F J Y" }}
You missed the colon.
On Mar 14, 9:21 am, "mralokkp" <[EMAIL PROTECTED]> wrote:
> Hi All
> Why Django Can't understand the supplied arguments.Why the code is too
> rigid !
>
> Case is this
> XXX | date "F J Y"
>
> I
Hi All
Why Django Can't understand the supplied arguments.Why the code is too
rigid !
Case is this
XXX | date "F J Y"
It should read in the format that i choosen but instead of this gives
this error
TemplateSyntaxError at /mypage/
Could not parse the remainder: | date "F J Y"
Request Method:
14 matches
Mail list logo