Try-Django-1.11 icon indicating copy to clipboard operation
Try-Django-1.11 copied to clipboard

Masking local.py errors

Open jameshume opened this issue 7 years ago • 0 comments
trafficstars

Hi Chaps,

Thanks for this great resource to learn Django with. Its is really useful and well written. I'm just starting my journey and one thing I found useful was to change the "except:" in settings/__init__.py into "except ModuleNotFoundError:". The reason for this was that if I made a mistake in local.py it was quietly being ignored, not because it didn't exist but because I made an error. It would be nice if those errors were reported back rather than masked :)

jameshume avatar Jan 27 '18 14:01 jameshume