def get_config(key, default=None):
return getattr(settings, key, default)<EOL>
Get settings from django.conf if exists,
return default value otherwise

example:

ADMIN_EMAIL = get_config('ADMIN_EMAIL', 'default@email.com')