fix redirect in cases where static files are not managed by django