← Back to team overview

widelands-dev team mailing list archive

Re: [Merge] lp:~franku/widelands-website/handle_big_images into lp:widelands-website

 

The current update of this branch corrects all the issues which are decribed in https://code.launchpad.net/~franku/widelands-website/handle_big_images/+merge/247235/comments/625062 in a conveniant way.

I added a admin action to http://localhost:8000/admin/wlimages/image/ which easily corrects the value for "image" to an relative path without editing and reloading the dumpdata.

With the admin action you could mark all images (or only one image) and choose "Correct Image path" from the "Action" dropdownbox. This will change the image-value f.e.:

from (absolute path):
/var/www/django_projects/widelands/media//wlimages/Saledus.png

to (relative path):
wlimages/Saledus.png

for each marked image.

I also corrected the setting of this value in wlimages/models.py to prevent future upload failures.

Plaese take a carefull look to the new function in wlimages/admin.py.
-- 
https://code.launchpad.net/~franku/widelands-website/handle_big_images/+merge/247235
Your team Widelands Developers is subscribed to branch lp:widelands-website.


References