<filename>settings.py

try:
    from .local_settings import *
except ImportError:
    print("Unable to import")
    pass

<filename>settings.py

try:
    from .local_settings import *
except ImportError:
    print("Unable to import")
    pass
