Dnia 22-09-2010 o 14:41:56 Sithembewena Lloyd Dube <zebr...@gmail.com> napisaƂ(a):

I implemented bagheera's suggestion and I seem to have run into a problem. The TimnyMCE javascripts are in the admin's js folder, but when I view source and click on the links in Firefox, the files cannot be found. This is odd because the paths to the scripts are correct. For example actions.js is part of the default installation and I can read the contents via Firefox:

WRONG
tinyMCE should be placed where ordinary site media files are, not in admin media dir

read docs please:
http://docs.djangoproject.com/en/1.2/ref/contrib/admin/#modeladmin-media-definitions


It clearly states: "Keep in mind that this will be prepended with MEDIA_URL"

Example: i have in one of my ModelAdmin:


class Media:
        js = ('js/tiny_mce/tiny_mce.js', 'js/tiny_mce/tiny_mce_config.js',)

in SETTINGS.py:
MEDIA_ROOT = '/home/bagheera/NetBeansProjects/nml-src/storage'
MEDIA_URL = '/site_media/'

so path to tiny_mce.js file would be: /home/bagheera/NetBeansProjects/nml-src/storage/js/tiny_mce/tiny_mce.js
--
Linux user

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@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.

Reply via email to