Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: No module named tinymce

Tags:

django

tinymce

I followed the installation guide for django-tinymce and Using TinyMCE in Django, installed django-filebrowser, django-grapelli and django-tinymce with pip in virtual environment.
Fragments of
settings.py:

INSTALLED_APPS = (
  ...
  'django.contrib.admin',
  'tinymce',
)
TINYMCE_JS_URL = MEDIA_URL + 'js/tiny_mce/tiny_mce.js'
TINYMCE_JS_ROOT = MEDIA_ROOT + 'js/tiny_mce'
TINYMCE_DEFAULT_CONFIG = {
  'plugins': "table,spellchecker,paste,searchreplace",
  'theme': "advanced",
}

urls.py:

urlpatterns = patterns('',
  ...
  (r'^tinymce/', include('tinymce.urls')),
  # or (r'^tiny_mce/(?P<path>.*)$', 'django.views.static.serve',
    {'document_root':  os.path.join(settings.STATIC_ROOT, "admin/js/tiny_mce")}, 
)

_

import tinymce

in Python is successful, but when I try to run django (version 1.4) server, I get

Error: No module named tinymce

How to solve this problem?

like image 750
DSblizzard Avatar asked Oct 21 '25 14:10

DSblizzard


1 Answers

It sounds like you installed the packages into the wrong virtualenv.

like image 147
Timmy O'Mahony Avatar answered Oct 24 '25 06:10

Timmy O'Mahony



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!