tinymce no module exists

486 views
Skip to first unread message

Kean

unread,
Aug 4, 2019, 7:52:59 AM8/4/19
to Django users
Hi,

Im trying to improve text field with a text editor in an app i created with django.

Installed tinymce4-lite using pip3 into my virtaulenv.
updates apps in system.py with 'tinymce'
mapped url in project settings 'path('tinymce/', include('tinymce.urls')),

but still get error  ModuleNotFoundError: No module named 'tinymce'

I've tried all the guides on stackoverflow, and the django tinymce referring this issue,
nothing seems to fix, i've un-installed / re-installed, but error persists.

Am I missing a step or is something configured incorrectly, or is this an issue with compatibility,

Please can anyone guide or help?

Best,

Sam W

unread,
Aug 4, 2019, 10:05:47 AM8/4/19
to Django users
Add it to the installed apps

INSTALLED_APPS = (
...
'tinymce',
)

Kean Dumba

unread,
Aug 4, 2019, 10:16:49 AM8/4/19
to django...@googlegroups.com
Hi Sam,

Thanks added tinymce to apps as recommended, but still getting the same error

Best,  

K

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a4245a83-39b3-4214-ad31-cb2a7f1bb473%40googlegroups.com.

Mike Dewhirst

unread,
Aug 4, 2019, 11:55:24 PM8/4/19
to django...@googlegroups.com
On 4/08/2019 9:52 pm, Kean wrote:
> Hi,
>
> Im trying to improve text field with a text editor in an app i created
> with django.
>
> Installed tinymce4-lite using pip3 into my virtaulenv.

You need to pip3 install django-tinymce4-lite

> updates apps in system.py with 'tinymce'

I don't use system.py. Do you mean settings.py?


> mapped url in project settings 'path('tinymce/', include('tinymce.urls')),

Do you mean urls.py? If so, this is my urls.py entry

from tinymce import urls as tinymce_urls

urlpatterns = [

    ...

    re_path(r'^tinymce/', include(tinymce_urls)),

    ...

]


>
> but still get error ModuleNotFoundError: No module named 'tinymce'

Did you activate your virtualenv?

Good luck

Mike

>
> I've tried all the guides on stackoverflow, and the django tinymce
> referring this issue,
> nothing seems to fix, i've un-installed / re-installed, but error
> persists.
>
> Am I missing a step or is something configured incorrectly, or is this
> an issue with compatibility,
>
> Please can anyone guide or help?
>
> Best,
>
> K
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5eaf5652-bf5a-4e43-b5dd-4be3f1748738%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/5eaf5652-bf5a-4e43-b5dd-4be3f1748738%40googlegroups.com?utm_medium=email&utm_source=footer>.

Kean

unread,
Aug 5, 2019, 12:05:26 PM8/5/19
to django...@googlegroups.com
Hi Mike, 

thank you for the heip,

I tried the relative path  (in main/urls.py) you provided and it threw up errors.
the existing reference I have seems stable, please see below

path('tinymce/', include('tinymce.urls')),

I have pip3 installed django-tinymce4-lite.

What is odd, is if i run the server without a virtualenv, it works fine, 
with a virtualenv, it fails reporting the no module named tinymce error,

I’m thinking there is something I am missing 

best,

K


On 5 Aug 2019, at 04:54, Mike Dewhirst <mi...@dewhirst.com.au> wrote:

 re_path(r'^tinymce/', include(tinymce_urls)),

Mike Dewhirst

unread,
Aug 7, 2019, 8:16:29 AM8/7/19
to django...@googlegroups.com
If you pip install *outside* a virtualenv it gets installed in the system python. If yours is purely a development machine you should pip uninstall django and anything else you see in the system python's site-packages directory to clean things up. Virtualenv theory is to only install stuff in the project not the system Python.

Connected by Motorola
Reply all
Reply to author
Forward
0 new messages