# Do this `imp` dance so as to distinguish errors in
# localsettings.py preventing it from being imported from
# the absence of a file.

import imp
try:
    imp.find_module('localsettings')
except ImportError:
    pass
else:
    from localsettings import *