Django: TemplateDoesNotExist (rest_framework/api.html)

Make sure you have rest_framework in your settings's INSTALLED_APPS


Make sure you install pip install djangorestframework and include rest_framework in the setting.py

INSTALLED_APPS = [
    'rest_framework',
]