local_settings trick added to settings.py

Change-Id: I30ff44837b5d2474724afe17cd51618c9f050e25