Complete the code to import Django settings correctly.
from django.conf import [1]
The Django settings are accessed by importing settings from django.conf. This allows you to use your project configuration.
Complete the code to get the DEBUG value from Django settings.
debug_mode = [1].DEBUGYou access the DEBUG setting by using settings.DEBUG after importing settings.
Fix the error in accessing a custom setting named MY_SETTING.
my_value = [1].MY_SETTINGCustom settings are accessed through the settings object, just like built-in settings.
Fill both blanks to check if DEBUG is True and print a message.
if [1].DEBUG [2] True: print('Debug mode is on')
You check if settings.DEBUG == True to confirm debug mode is active.
Fill all three blanks to safely get a setting with a default value.
value = getattr([1], '[2]', [3])
Use getattr(settings, 'MY_SETTING', None) to get a setting or return None if it doesn't exist.