Further to this, it is now working nicely on the staging server - Ubuntu
16.04 Apache 2.2 vhost Python 2.7 mod-wsgi
The problem was related to not uninstalling django-tinymce before
installing django-tinymce4-lite and similarly with
django-filebrowser-no-grappelli.
So it looks like your guess was correct. There must have been a
javascript mashup in there somewhere.
However, the same treatment fails on my Windows runserver dev platform.
Brand new virtualenv for Py27 and Py36 still fail to show the little
browse link on the right-hand end of the Source field.
Additionally I *just* noticed there is a Filebrowser app displaying in
the Admin on the staging server but not on the dev site! I'll have to
look into that and report back. If I can get to the bottom of that it
will be the resolution. My CI system guarantees the same source
everywhere so there must be something I'm doing somewhere which is
causing it.
Thank you very much for responding. I reckon it sometimes makes the
difference between giving up (well, working around) and persisting.
Cheers
Mike
On 18/12/2017 11:26 PM, Mike Dewhirst wrote:
On 18/12/2017 8:23 PM, Etienne Robillard wrote:
Looks likes this is using javascript. What does the javascript
console says? Is the markup of the page valid HTML?
I don't have IE. I can't see a Javascript console with either Chrome
or Firefox. What should I look for specifically?
How can I test for valid html? View source and inspect it manually?
Which I just did and it looks ok.
Thanks for sticking with this. I appreciate it.
It is bedtime here.
Cheers
Mike
HTH
Etienne
Le 2017-12-17 à 22:06, Mike Dewhirst a écrit :
This time with version 3.9.2 having climbed a little higher into the
branches ...
C:\Users\mike\envs\xxct3\lib\site-packages\django_filebrowser-3.9.2-py3.6.egg\filebrowser\sites.py:12:
RemovedInDjango20Warning: Importing from django.core.urlresolvers is
deprecated in favor of django.urls.
from django.core.urlresolvers import reverse, get_urlconf,
get_resolver
C:\Users\mike\envs\xxct3\train\train\urls.py:113:
RemovedInDjango20Warning: Passing a 3-tuple to
django.conf.urls.include() is deprecated. Pass a 2-tuple containing
the list of patterns and app_name, and provide the namespace
argument to include() instead.
url(r'^admin/filebrowser/', include(site.urls)),
But no change.
I have also deleted my project/templates/admin folder and still no
change from the screenshot sent earlier - which I did not see so
I'll attach a new one to this email.
Cheers
Mike
On 18/12/2017 11:35 AM, Mike Dewhirst wrote:
On 18/12/2017 9:28 AM, Etienne Robillard wrote:
Hi Mike,
What Django version are you using? Is this happening with Python 2
or 3?
Sorry Etienne. Should have mentioned that.
Python 3.6 but it also needs to work with Py27
Django 1.11.8
Have you tried to turn on Python warnings?
C:\Users\mike\envs\xxct3\lib\site-packages\filebrowser\sites.py:12:
RemovedInDjango20Warning: Importing from django.core.urlresolvers
is deprecated in favor of django.urls.
from django.core.urlresolvers import reverse, get_urlconf,
get_resolver
C:\Users\mike\envs\xxct3\train\train\urls.py:113:
RemovedInDjango20Warning: Passing a 3-tuple to
django.conf.urls.include() is deprecated. Pass a 2-tuple containing
the list of patterns and app_name, and provide the namespace
argument to include() instead.
url(r'^admin/filebrowser/', include(site.urls)),
Have you tried to use the development verion of django-filebrowser?
Yes. Installed from trunk. Same outcome. Here is a screenshot
HTH
Etienne
Le 2017-12-17 à 15:48, Mike Dewhirst a écrit :
An update. I adjusted settings ...
FILEBROWSER_DIRECTORY = 'uploads/'
FILEBROWSER_VERSIONS_BASEDIR = '_versions/'
.. and to match these dirs ...
'media/_versions/'
'media/uploads/'
Still won't show me an upload or browse button in the insert
image dialog.
I also uninstalled and reinstalled to no effect.
Thanks for any help
Mike
On Saturday, December 16, 2017 at 7:04:34 PM UTC+11, Mike
Dewhirst wrote:
I have tried both django-filebrowser and
django-filebrowser-no-grappelli
with django-tinymce4-lite
The TinyMCE part is working fine in the Admin and trying to
insert an
image in the text is trying to work and if I pasted in a url it
would
probably insert the image it points to.
The problem is there is no browse button in the image-insert
dialog box.
The Admin ImageField [Browse] button works fine.
In settings ...
FILEBROWSER_DIRECTORY = '/'
url(r'^admin/filebrowser/', include(site.urls)),
url(r'^tinymce/', include('tinymce.urls')),
url(r'^admin/', admin.site.urls),
Any hints appreciated ..
Thanks
Mike
--
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
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to
django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/f9a34b92-9005-4cda-a4a6-40efc00dcf28%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/f9a34b92-9005-4cda-a4a6-40efc00dcf28%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/
--
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
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/0f1b5957-e66b-4c8a-57ca-85d7848406d6%40yandex.com
<https://groups.google.com/d/msgid/django-users/0f1b5957-e66b-4c8a-57ca-85d7848406d6%40yandex.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/e9882b5a-4995-7c10-43ba-99e332f475fe%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.