matthewwithanm / django-imagekit

Automated image processing for Django. Currently v4.0
http://django-imagekit.rtfd.org/
BSD 3-Clause "New" or "Revised" License
2.26k stars 276 forks source link

Check file's availability before rendering #491

Open JosephDev opened 5 years ago

JosephDev commented 5 years ago

If there is no file exist in server or path, Dango raises OSError. To avoid error in templates, check image path availability before rending. and can set default url as passing argument.

vstoykov commented 5 years ago

Thank you, @JosephDev for your contribution!

This will only work for default FileSystemStorage. What about custom storages like these provided by django-storages?

JosephDev commented 5 years ago

@vstoykov I'd like to run and write tests including custom storages but I am not sure where I start from. Will you provide the command to run tests?

vstoykov commented 5 years ago

Did you read the CONTRIBUTING.rst file in the repo?

You just need to have tox installed and in the project directory to run tox.