I'm trying to install django-tinymce so that I can use utilize it within
the admin when editing flatpages and flatblocks. I've been following the
instructions at
http://django-tinymce.readthedocs.org/en/latest/installation.html, but I
can't seem to get TinyMCE to display. django-tinymce has been installed via
pip, and here are the relevant snippets of code:
*settings.py*
INSTALLED_APPS = (
...
'tinymce',
)
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
TINYMCE_JS_URL = os.path.join(PROJECT_ROOT,
'templates/static/js/tiny_mce/tiny_mce.js')
TINYMCE_JS_ROOT = os.path.join(PROJECT_ROOT, 'templates/static/js/tiny_mce')
* I have a hunch that here is where I'm going wrong. The instructions
indicate that the tiny_mce js dir should reside in MEDIA, but I was under
the impression that MEDIA is to be used for user-uploaded content, while
STATIC is for assets like JS and CSS. That's why I put the tiny_mce lib in
STATIC instead of MEDIA.
*
urls.py*
urlpatterns = patterns(''
...
url(r'^tinymce/', include('tinymce.urls')),
)
* If i visit 'http://127.0.0.1:8000/tinymce/flatpages_link_list/' in the
browser, 'var tinyMCELinkList = []' is rendered.
Any help would be greatly appreciated. Thanks.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/LzurKyPvBdAJ.
To post to this group, send email to [email protected].
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.