import local_settings with try-except