add: <script src="{% admin_media_prefix %}js/core.js" type="text/javascript" ></script> <script src="{% admin_media_prefix %}js/admin/Calendar.js" type="text/javascript" ></script> <script src="{% admin_media_prefix %}js/admin/DateTimeShortcuts.js" type="text/javascript" ></script>
to your template, use SplitDateTimeField and pass the fields: attrs={'class':'vDateField'} That way you have the same date and time input as the admin interface. TiNo On Sun, Jun 29, 2008 at 10:46 PM, Tim Sawyer <[EMAIL PROTECTED]> wrote: > > Hi Folks, > > What's the simplest approach for me to have a form that makes it easy for > the > user to enter a Date/Time combination? > > I have my form class specified (the field in question is a > forms.DateTimeField()), but I need to make it easy for users of the site to > enter a date/time pair for the field. > > Is there a simple way to do this? I'm using jQuery for javascript on the > site > if that's relevant. > > Thanks, > > Tim. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---