Additional Javascript include in ModelAdmin

2009-03-22 Thread Roy
Hi, Is there a way to include additional JavaScript in the admin page for a particular model? I don't want to touch the model code though. The particular scenario is I want to change the flatpage edit screen in the admin to use a rich-text editor (NicEdit) instead of the plain memo box. Thanks!

Re: Additional Javascript include in ModelAdmin

2009-03-22 Thread Daniel Roseman
On Mar 22, 3:04 pm, Roy wrote: > Hi, > > Is there a way to include additional JavaScript in the admin page for > a particular model? I don't want to touch the model code though. > > The particular scenario is I want to change the flatpage edit screen > in the admin to use a rich-text editor (NicE

Re: Additional Javascript include in ModelAdmin

2009-03-22 Thread Roy
That would require the extra files be hosted on my media url though. I want to be able to link js externally so I can use stuff like YUI, etc. without having to host it. Also, is it possible to do it without registering a new Admin class? I'm not sure if it's possible to just override a template

Re: Additional Javascript include in ModelAdmin

2009-03-22 Thread Brian Neal
On Mar 22, 11:15 am, Roy wrote: > That would require the extra files be hosted on my media url though. I > want to be able to link js externally so I can use stuff like YUI, > etc. without having to host it. No, not if you use a fully qualified string like "http://some-url-to- my-media". --~--~-

Re: Additional Javascript include in ModelAdmin

2009-03-22 Thread Daniel Roseman
On Mar 22, 4:15 pm, Roy wrote: > That would require the extra files be hosted on my media url though. I > want to be able to link js externally so I can use stuff like YUI, > etc. without having to host it. Not at all - if you pass in an absolute path, it is left alone. See: http://docs.djangopr