Try-Django-1.11
Try-Django-1.11 copied to clipboard
Masking local.py errors
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 :)