Hi Gen-Nan.
you can override the template that the admin app uses to generate the listing page if that helps.
so for example in my performance monitoring app, I created a template admin/perf/log/change_list.html and put that file in my template directory.
now when i click on the 'perf/log' model in the admin my template gets run.
but personally I think if you are doing some custom work you should just create a little app and do it in there. it isn't too hard.
regards Ian. On 02/08/2006, at 3:00 PM, Gennan Chen wrote: Hi!
django's admin is pretty neat and I will like to customize it. I know there is a documentation to change its appearance. But how about I want to add a bit more function or buttons on the form. For example, I need to run some server side scripts/program after user click saving changes. How do I do that? And if I want to add some buttons on the form to run shutdown and reboot machines (this has nothing to do with db except adding a log), where is the documentation for that??
Gen-Nan Chen, PhD Chief Scientist Research and Development Group CorTechs Labs Inc ( www.cortechs.net) 1020 Prospect St., #304, La Jolla, CA, 92037 Tel: 1-858-459-9700 ext 16 Fax: 1-858-459-9705 Email: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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 -~----------~----~----~----~------~----~------~--~---
|