Re: DATE FORMAT ISSUE AGAIN.

2007-03-15 Thread mralokkp
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

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread mralokkp
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

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread Malcolm Tredinnick
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

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread mralokkp
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

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread James Bennett
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."

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread Tim Chase
> 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

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread [EMAIL PROTECTED]
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

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread mralokkp
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:

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread mralokkp
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'

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread mralokkp
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

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread [EMAIL PROTECTED]
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" > >

DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread mralokkp
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