How to install django-mce?

56 views
Skip to first unread message

Roy Smith

unread,
Apr 8, 2012, 4:34:26 PM4/8/12
to django...@googlegroups.com
I'm trying to install django-tinymce 1.5.1b2 into a django-1.3 site.  The installation instructions say:

"Copy the jscripts/tiny_mce directory from the TinyMCE distribution into a directory named js in your media root. You can override the location in your settings (see below)."

But there is no such directory. There are:

./media/tiny_mce/plugins/preview/jscripts
./static/tiny_mce/plugins/preview/jscripts

directories, but no tiny_mce directory under those.  Even odder, the media and static trees look like identical copies of each other.  Also, it seems like the javascript files should go under my static directory, not my media directory.  I'm guessing the installation directions predate django 1.3 and collectstatic?

So, what exactly am I supposed to install where?

Aljoša Mohorović

unread,
Apr 8, 2012, 6:50:13 PM4/8/12
to django...@googlegroups.com
On Sun, Apr 8, 2012 at 10:34 PM, Roy Smith <r...@panix.com> wrote:
> I'm trying to install django-tinymce 1.5.1b2 into a django-1.3 site.  The

just use "pip install django-tinymce"

> directories, but no tiny_mce directory under those.  Even odder, the media
> and static trees look like identical copies of each other.  Also, it seems

it contains both media and static so it can be compatible w/ django
before staticfiles were part of django.

> directory.  I'm guessing the installation directions predate django 1.3 and
> collectstatic?

no, files (static/media) are new and included to work properly w/
django 1.3, didn't try w/ 1.4.

docs are little out of date but should work.
http://django-tinymce.readthedocs.org/en/latest/installation.html

feel free to contact me if you need help.

Aljosa

Roy Smith

unread,
Apr 9, 2012, 3:09:30 PM4/9/12
to django...@googlegroups.com

docs are little out of date but should work.
http://django-tinymce.readthedocs.org/en/latest/installation.html


Thanks for the help.  The critical item was, "If you are using django-staticfiles you can skip this step".  I added 'tinymce' to INSTALLED_APPS, set

TINYMCE_DEFAULT_CONFIG = {
    "width": "100%",
    "height": "400px",
    "theme": "advanced",
    "relative_urls": False,
    }

and ran manage.py collectstatic.  Works like a charm.  Thanks!

Roy Smith

unread,
Apr 9, 2012, 3:10:14 PM4/9/12
to django...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages