So, to have this functionality, but without warning I use this pattern:
try: import local_settings for setting in dir(local_settings): if setting.startswith('_'): continue locals()[setting] = getattr(local_settings, setting) except ImportError: pass
Simple and useful!
Update: I've added ignore of attributes which starting with underscore. Thanks to Igor Davydenko