On Wed, Dec 31, 2008 at 9:35 AM, Mario <goober20...@gmail.com> wrote:
> > Karen, > > Can you provide me an example of the widget implementation? > Sorry, I am not sure what you are asking for. Someone said (I thought) that they wanted to have calendar inputs like the admin uses, only in their own pages, so I pointed to the doc that mentions where the admin widgets are located in the django source tree. They then said they "do now" (I assume that was meant to be "do not") want to use a widget, so I am not sure what the original question was asking for. The admin uses custom widgets, if you don't want to use widgets than you don't really want what the admin uses (and you're apparently not using Django forms, since Django forms use widgets?). Perhaps the objection to the admin widgets is that they use javascript, I'm not sure, since the response to my pointing to the doc was not at all clear to me. Anyway, if you want calendar inputs like the admin uses, it should be fairly straightforward to re-use the admin widgets that the doc mentions in your own pages, though you may need to look at the source to get the right names to specify for the widgets, I don't see that the doc details that. Personally I have not done this myself and don't have time at the moment to do any more with it than point at the existing doc. Karen > > On Dec 30, 9:30 am, "Karen Tracey" <kmtra...@gmail.com> wrote: > > On Tue, Dec 30, 2008 at 7:51 AM, Praveen <praveen.python.pl...@gmail.com > >wrote: > > > > > > > > > Hi All, > > > I want to use calendar in my html template as the default admin > > > interface uses. > > > > http://docs.djangoproject.com/en/dev/topics/forms/media/#form-media > > > > Karen > > > --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---