added logic to handle missing local_settings.py