views:

7

answers:

0

Hello Stack-ers,

I've come across a case whereas I've been using WYMEditor in the admin to take care of my rich text editing needs.

I've now implemented the site utilising the basic/zero Pinax project.

It seems however, that now I need to re-route the media needs of the wymeditor widget to STATIC_URL instead of MEDIA_URL. Though I'm wondering if there's another way?

Here's the code for the widget:

http://dpaste.org/xDYE/

And in Django, here's the class Media:

http://dpaste.org/bzqN/

I've concluded that I either need to override the class Media and instruct it to use settings.STATIC_URL instead -- or just slip the necessary WYMEditor media in the 'other' media directory, so that it gets picked up.

Of course, the former option would be cooler... and more 'inline' with what Pinax is trying to achieve.

Recommendations?

Kind thanks

Daryl.