Monday, December 18, 2017

Re: Still having trouble with django-filebrowser

I was just mousing around and playing with Chrome's tools on the Ubuntu
16.04 staging server and triggered a django error pasted here ...

http://dpaste.com/1G3A8JW

Error finding Upload-Folder (site.storage.location + site.directory)

Could you please explain what the upload folder is?

I'm confused whether it is a constraint to keep the uploader confined on
the source machine or perhaps the area for upload storage on the web
server - which would be a download - and anyway that is the MEDIA_ROOT I
suspect.

Thanks

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+unsubscribe@googlegroups.com
>>>>>> <mailto:django-users+unsubscribe@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
>>>>> tkadm30@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+unsubscribe@googlegroups.com
>>>>> <mailto:django-users+unsubscribe@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+unsubscribe@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/20c5ae3d-9dbf-0298-2c0d-69cbe8888b45%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment