I'm trying the exact same thing but the widgets do not seem to display. I'd like to display the date/time pickers but the event doesn't seem to be triggered.
I'm also getting errors in firebug about gettext() function. Any help/suggestion would be great. Thanks, /John On 11/1/06, Guillermo Fernandez Castellanos <[EMAIL PROTECTED]> wrote: > > Hi, > > I've a model with a DateTimeField in it, and I'm creating a form to add > objects. > > So, I create the form for the DateTimeField. Up to here, everything > ok, it works. > > Now I would like to add the js helpers we can find when we use the > admin to create an object (the little calendar and watch with 'Today' > and 'Now' besides). > > I add in the header the following: > <link rel="stylesheet" type="text/css" href="/admin_media/css/forms.css" /> > <script type="text/javascript" src="../../../jsi18n/"></script> > <script type="text/javascript" > src="/admin_media/js/core.js"></script><script type="text/javascript" > src="/admin_media/js/admin/RelatedObjectLookups.js"></script><script > type="text/javascript" > src="/admin_media/js/calendar.js"></script><script > type="text/javascript" > src="/admin_media/js/admin/DateTimeShortcuts.js"></script> > but it does not seem to work. > > I've surrounded the DateTimeField form with: > <div class="form-row" > > <p class="datetime"> > </p> > </div> > but it does not seem to work neither. > > Someone has an idea about how I could make it work? > > Thanks a lot, > > G > > > > -- John Hwang --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---