django tinymce/filebrowser issue

280 views
Skip to first unread message

Bobby Roberts

unread,
Apr 28, 2010, 2:57:02 AM4/28/10
to Django users
hey group -

I've installed djangotinymce and filebrowser per the instructions.
I've run across a strange issue. When I go to insert an image, the
image dialog pops up just fine with the button for filebrowser.
However, when I click the filebrowser button, nothing happens. Any
idea what could be causing that?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Xavier Ordoquy

unread,
Apr 28, 2010, 7:26:06 AM4/28/10
to django...@googlegroups.com
Hi,

Filebrowser is a bit tricky to setup.
Did you had a look at 404 requests made by your browser ? There should be something that isn't available at some point.
Took me some time to setup it up correctly the first time.

Regards,
Xavier.

Bobby Roberts

unread,
Apr 28, 2010, 1:01:30 PM4/28/10
to Django users
not sure how to do that... i'm not really getting any javascript
errors or anything.

On Apr 28, 3:26 am, Xavier Ordoquy <xordo...@linovia.com> wrote:
> Hi,
>
> Filebrowser is a bit tricky to setup.
> Did you had a look at 404 requests made by your browser ? There should be something that isn't available at some point.
> Took me some time to setup it up correctly the first time.
>
> Regards,
> Xavier.
>
> Le 28 avr. 2010 à 04:57, Bobby Roberts a écrit :
>
> > hey group -
>
> > I've installed djangotinymce and filebrowser per the instructions.
> > I've run across a strange issue.  When I go to insert an image, the
> > image dialog pops up just fine with the button for filebrowser.
> > However, when I click the filebrowser button, nothing happens.  Any
> > idea what could be causing that?
>
> > --
> > You received this message because you are subscribed to the Google Groups "Django users" group.
> > To post to this group, send email to django...@googlegroups.com.
> > To unsubscribe from this group, send email to django-users...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Bill Freeman

unread,
Apr 28, 2010, 2:30:37 PM4/28/10
to django...@googlegroups.com
In firebug (in firefox) there is a "NET" tab that shows you all the stuff
that got loaded, including which ones 404.

When I was installing this stuff I made the mistake of installing as an
egg, and the media subdirectories didn't get pulled in. Both tinymce
and filebrowser had problems like this. At the very least, go to the
tar file to see what javascript/css/image stuff there is and be sure
that it is installed where your server can serve it, at the urls that the
packages are configured to use. I don't remember that being the
last problem, but it's a start.

If all the media is working, make sure that the context pulls in an
appropriate top level js to configure tinymce. We had this working
in one part of a site but not another, and the firebug NET tool was
very helpful in showing what was loaded in one context but not or
differently in the other. I spent a long time setting breakpoints in
firebug, but it was an initialization issue (the plugin stuff was hard
to debug).

Bill

Bobby Roberts

unread,
Apr 28, 2010, 2:38:49 PM4/28/10
to Django users
hey bill i'm getting this traceback:


NoReverseMatch at /tinymce/filebrowser/

Reverse for 'filebrowser-index' with arguments '()' and keyword
arguments '{}' not found.

Request Method: GET
Request URL: http://www.rakeshark.com/tinymce/filebrowser/
Exception Type: NoReverseMatch
Exception Value:

Reverse for 'filebrowser-index' with arguments '()' and keyword
arguments '{}' not found.

Exception Location: /home/absentx/webapps/django_apps/lib/python2.5/
django/core/urlresolvers.py in reverse, line 300
Python Executable: /usr/local/bin/python
Python Version: 2.5.4
Python Path: ['/home/absentx/lib/python2.5', '/home/absentx/webapps/
django_apps', '/home/absentx/webapps/django_apps/live', '/home/absentx/
lib/python2.5', '/home/absentx/webapps/django_apps/lib/python2.5', '/
usr/local/lib/python25.zip', '/usr/local/lib/python2.5', '/usr/local/
lib/python2.5/plat-linux2', '/usr/local/lib/python2.5/lib-tk', '/usr/
local/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-
packages', '/usr/local/lib/python2.5/site-packages/PIL']
Server time: Wed, 28 Apr 2010 09:37:46 -0500


any idea what this means?

fuxter

unread,
Apr 28, 2010, 2:45:11 PM4/28/10
to Django users
> Any
> idea what could be causing that?
>

last time i had exact same problem. existing button but filebrowser
not appearing. it was thist one:

<script type="text/javascript" src="tinymce/filebrowser/"></script>

if you check the url you'd get an clear error about reverse url fault.
actually i had to fix tinymce python source:

fb_url = "%s://%s%s" % (request.is_secure() and 'https' or 'http',
#request.get_host(), urlresolvers.reverse('filebrowser-index'))
request.get_host(), urlresolvers.reverse('fb_browse'))

since filebrouser url.py has no "filebrowser" now, it's 'fb_browse'.

well that's what i had to do last time.

Bill Freeman

unread,
Apr 28, 2010, 2:54:16 PM4/28/10
to django...@googlegroups.com
It means that something is calling reverse, or a template is using
the url tag, with a bad argument. The argument could be bad
in it's own right (if it's your own code doing it, or if something like
filebrowser or tinymce is using an improperly set configuration
variable from settings.py), or that the object sought isn't in the
chain of url patterns. I'm suspicious of "/tinymce/filebrowser/"
because it doesn't look like an argument to reverse, but rather
the sort of thing that reverse is expected to return.

Have you read all the stuff about configuring tinymce? Have
you spliced it into your url structure?

There's a lot more stuff in that traceback which should let you
figure out where the info being passed to reverse is coming from.
There is also the triangle that lets you see variables, so you
can see what it's trying to reverse. There's one of these at
every stack level.
Reply all
Reply to author
Forward
0 new messages