romanvm / django-tinymce4-lite

TinyMCE 4 editor widget for Django
MIT License
126 stars 47 forks source link

Admin shows old tinymc #39

Closed milossh closed 5 years ago

milossh commented 5 years ago

Hello.

I've first installed django-tinymce package with pip, for my django, configured it, and it worked properly. Then I figured it's missing paragraphs UI, and found out about django-tinymce4-lite package. Now, since you're using the same tinymce module name, I simply uninstalled django-tinymce, and installed django-tinymce4-lite with pip, restarted servers(both gunicorn and nginx), ran collectstatic, and I'm still getting the old version of tinymce.

What could I be doing wrong?

romanvm commented 5 years ago

Cache problems? Do a full page reload in your browser (ctrl+F5 in FF, shift+F5 in Chrome) and invalidate caches in the middle (proxy, Varnish, etc.), if any.

milossh commented 5 years ago

@romanvm Sorry, I somehow missed this reply. This said, I've tried even removing and adding it back again, hard refresh browser, changed browser, nothing helped. I also don't use any caching server side like varnish/proxy/redis...

romanvm commented 5 years ago

@thirdmusketeer It is very rude to hijack somebody else's issue ticket. Please do not post anything here.

@milossh Another possibility I can think of is that you have forgotten to activate your virtual environment before running pip and installed this package into your system or user site-packages.

milossh commented 5 years ago

@romanvm thanks for your response. Now, here's my console:

milos@ubuntu-4gb-nbg1-1:~/django-doktorino/doktorinosite$ deactivate
milos@ubuntu-4gb-nbg1-1:~/django-doktorino/doktorinosite$ pip show tinymce
milos@ubuntu-4gb-nbg1-1:~/django-doktorino/doktorinosite$ pip show django-tinymce
milos@ubuntu-4gb-nbg1-1:~/django-doktorino/doktorinosite$ source ../env/bin/activate
(env) milos@ubuntu-4gb-nbg1-1:~/django-doktorino/doktorinosite$ pip show django-tinymce
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(env) milos@ubuntu-4gb-nbg1-1:~/django-doktorino/doktorinosite$ pip show django-tinymce4-lite
Name: django-tinymce4-lite
Version: 1.7.1
Summary: A Django application that provides a fully functional TinyMCE 4 editor widget for models and forms.
Home-page: https://github.com/romanvm/django-tinymce4-lite
Author: Roman Miroshnychenko (fork author)
Author-email: roman1972@gmail.com
License: MIT License
Location: /home/milos/django-doktorino/env/lib/python3.5/site-packages
Requires: jsmin, Django
Required-by:
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(env) milos@ubuntu-4gb-nbg1-1:~/django-doktorino/doktorinosite$
romanvm commented 5 years ago

Then I'm out of ides. Even with aggressive caching it should not happen because tiymmce4-lite uses different names for static files. Please do the following thing:

romanvm commented 5 years ago

I'm closing this issue since there has been no follow-up.