Django - REST Framework BasicsAfter installing DRF, which setting must you add to your Django project's settings.py to enable it?A'django_rest_framework' in INSTALLED_APPSB'rest_framework' in MIDDLEWAREC'restframework' in MIDDLEWARED'rest_framework' in INSTALLED_APPSCheck Answer
Step-by-Step SolutionSolution:Step 1: Locate the correct setting for enabling appsApps are enabled by adding their names to INSTALLED_APPS in settings.py.Step 2: Add the correct app nameThe correct app name for DRF is 'rest_framework'. It should be added to INSTALLED_APPS, not MIDDLEWARE.Final Answer:'rest_framework' in INSTALLED_APPS -> Option DQuick Check:Enable DRF by adding to INSTALLED_APPS = B [OK]Quick Trick: Add 'rest_framework' to INSTALLED_APPS, not MIDDLEWARE [OK]Common Mistakes:MISTAKESAdding to MIDDLEWARE instead of INSTALLED_APPSUsing wrong app name like 'django_rest_framework'Forgetting to add it at all
Master "REST Framework Basics" in Django9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallPerf
More Django Quizzes Caching - Low-level cache API - Quiz 6medium Caching - Per-view caching - Quiz 13medium DRF Advanced Features - DRF permissions - Quiz 2easy DRF Advanced Features - DRF authentication (Token, JWT) - Quiz 2easy Security Best Practices - XSS prevention in templates - Quiz 7medium Security Best Practices - Content Security Policy - Quiz 6medium Signals - Connecting signal handlers - Quiz 7medium Signals - pre_delete and post_delete signals - Quiz 12easy Testing Django Applications - TestCase and SimpleTestCase - Quiz 2easy Testing Django Applications - Coverage reporting - Quiz 11easy