csv link behave differently, according to settings.DEBUG's value