Check out the section on custom widgets: http://www.djangoproject.com/documentation/newforms/#custom-widgets
Basically involves you creating a widget that renders your js color picker, and then telling your model field to use that widget. Good to know that you can also use templates within widgets, so you don't have to squeeze all the html/js into the python inline. On Mar 27, 9:32 pm, julichrist <[EMAIL PROTECTED]> wrote: > anyone know how to put javascript into django templete? let's say i have a > field "color" in the models.py, i want django templete shows a color picker > (using javascript) in the templete, so user can pick the color. > -- > View this message in > context:http://www.nabble.com/javascript-in-django-tp16343806p16343806.html > Sent from the django-users mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---