Re: A problem of js option of Admin options

2006-04-18 Thread Nebojsa Djordjevic
huangyi wrote: > class Admin: > js = [url,] > > django always translate url to 'admin_media/'+url > > I think > > if url.startswith('http://'): > url > else: > 'media/'+url > > is better. > > OR always translate url to 'custom_media/'+url , > > because this *IS* custom j

Re: A problem of js option of Admin options

2006-04-17 Thread Rudolph
Hi, I recently posted your first suggestion: http://code.djangoproject.com/ticket/1633. Is this something that should be built into Django? I think one should be abled to load javascript files (and other files) from every possible URL and defaults to the ADMIN_MEDIA_PREFIX. More on your second s

A problem of js option of Admin options

2006-04-17 Thread huangyi
class Admin: js = [url,] django always translate url to 'admin_media/'+url I think if url.startswith('http://'): url else: 'media/'+url is better. OR always translate url to 'custom_media/'+url , because this *IS* custom js. I just want to use FCKEditor to replace a Tex