AFAIK that JS date picker is only available in the admin interface. rendering a form as {{ my_form}} does not print that date picker either.
I'd be interested in knowing how to get it to show up too (what JS/CSS files need to be added, whether there is some setting we can use in the python code itself or do we have to print out each field independently and insert the appropriate code for the picker etc.). Best, R On Mon, Apr 21, 2008 at 9:46 PM, Guillaume Lederrey <[EMAIL PROTECTED]> wrote: > > Hello ! > > I have a model that I try to edit with a ModelForm. This model has a > DateField property. I render the form in my template with a simple : > > {{ form.as_p }} > > I expected the DateField to be displayed as in the admin interface, > with a javascript date picker. But I only get a text field. The value > format is validated as a date format, so I expect the field is treated > as a DateField. > > Is there a way to automagically get the javascript date picker, or is > it something I have to add manually ? > > Thanks for your help ! > > MrG > > -- > Jabber : [EMAIL PROTECTED] > Skype : Guillaume.Lederrey > Projects : > * http://rwanda.ledcom.ch/ > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---