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' Exception Location: c:\Python24\Lib\site-packages\django\utils \dateformat.py in F, line 123
On Mar 14, 7:49 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > Case is this > > XXXXXXX | 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, but for some reason, the template parser > doesn't seem like extra whitespace. You'll also want to separate > your "date" from its argument with the colon: > > fails: XXXX | date "F J Y" > works: XXXX|date:"F J Y" > > I'll agree that whitespace makes it more readable, and that it > would be nice if the template engine was a little more forgiving. > > But fortunately, it's an easy fix to just remove the whitespace. > > Perhaps a little caveat about whitespace at > > http://www.djangoproject.com/documentation/templates/#filters > > would help reduce confusion? > > -tkc --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---