why not

try:
   from .settings_local import *
except ImportError:
   pass

?