Complete the code to enable debug mode in Django settings.
DEBUG = [1]Setting DEBUG = True enables debug mode in Django, which shows detailed error pages.
Complete the code to allow Django to serve static files during development when debug mode is on.
if settings.DEBUG: urlpatterns += static(settings.STATIC_URL, document_root=[1])
When DEBUG is True, Django serves static files from STATIC_ROOT.
Fix the error in the code to properly show detailed error pages only when debug mode is on.
if [1]: # show detailed error page pass
Use settings.DEBUG to check if debug mode is on. The other options are incorrect syntax or logic.
Fill both blanks to configure Django to show detailed error pages and allow all hosts during development.
DEBUG = [1] ALLOWED_HOSTS = [[2]]
Setting DEBUG = True enables debug mode. Using "*" in ALLOWED_HOSTS allows all hosts during development.
Fill all three blanks to disable debug mode, set allowed hosts, and configure static files root.
DEBUG = [1] ALLOWED_HOSTS = [[2]] STATIC_ROOT = [3]
Set DEBUG = False to disable debug mode in production. ALLOWED_HOSTS should list your domain. STATIC_ROOT is the folder where static files are collected.