Re: tinymce no module exists

2019-08-07 Thread Mike Dewhirst
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

Kean  wrote:

>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  wrote:
>
>
> re_path(r'^tinymce/', include(tinymce_urls)),
>
>
>-- 
>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+unsubscr...@googlegroups.com.
>To view this discussion on the web visit 
>https://groups.google.com/d/msgid/django-users/8B44B676-A1F9-40B3-8664-244335DF497D%40gmail.com.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/pdxmc4cmvqmo0yj1dokqt202.1565048356091%40email.android.com.


Re: tinymce no module exists

2019-08-05 Thread Kean
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  wrote:

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

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8B44B676-A1F9-40B3-8664-244335DF497D%40gmail.com.


Re: tinymce no module exists

2019-08-04 Thread Mike Dewhirst

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+unsubscr...@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 
.


--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a1e92ad9-908b-51f6-b50f-a9865f4fc76c%40dewhirst.com.au.


Re: tinymce no module exists

2019-08-04 Thread Kean Dumba
Hi Sam,

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

Best,

K

On Sun, 4 Aug 2019 at 15:06, Sam W  wrote:

> Add it to the installed apps
>
>  INSTALLED_APPS = (
> ...
> 'tinymce',
> )
>
> --
> 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+unsubscr...@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
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKvrVZMOCW2VA%2BSG7D8MfZRhZgHHg4J91FxwsvqR5vowBfaAjg%40mail.gmail.com.


tinymce no module exists

2019-08-04 Thread Sam W
Add it to the installed apps

 INSTALLED_APPS = (
...
'tinymce',
)

-- 
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+unsubscr...@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.


tinymce no module exists

2019-08-04 Thread Kean
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,

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+unsubscr...@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.