Better exception in settings_prod.py