djangosnippets.org: Latest snippets tagged with 'localsettings'https://djangosnippets.org/tags/localsettings/2015-07-11T11:33:20.330738-05:00better localsettings import
2015-07-11T11:33:20.330738-05:00andrewhttps://djangosnippets.org/snippets/10511/<p>Most people simply wrap "from localsettings import *" in a try/except ImportError block. That's what I've done for years, but recently came up with this better way.</p>
<p>The problem this snippet solves is that if your localsettings.py itself causes an ImportError somehow, that error will be silently swallowed and your …</p>
Freely redistributable