Check if Django settings were configured before accessing them