yourcelf / olwidget

Javascript library to replace textareas that contain WKT data with editable OpenLayers maps, and a django app using it for django forms and admin.
Other
91 stars 43 forks source link

django 1.3 staticfiles support #51

Closed philipn closed 13 years ago

philipn commented 13 years ago

olwidget appears to be written with an older staticfiles-type system in mind (using 'media'). Django 1.3 standardises this, settling on 'static' for media. I changed 'media' to 'static' and updated widgets.py accordingly. It should work with older installations, too.

yourcelf commented 13 years ago

Cool, thanks -- I'll test this soon then pull it. It's backwards incompatible for anyone who's customized the OLWIDGET_MEDIA_URL setting, and to anyone who's linked to the old location of olwidget/media/olwidget, but this is the future so it's worth it.

philipn commented 13 years ago

Added a fix for afterAdd() as well.

philipn commented 13 years ago

Sent a more direct pull request (this pull requst is set for 'master'). I don't think I can delete this here, though :)