from django.conf import settings MY_CUSTOM_SETTING = getattr(settings, 'MY_CUSTOM_SETTING', 'default value')