Skip to content
thesarfo

Note

Getting Started with DRF

Installing Django REST Framework and adding it to INSTALLED_APPS.

views 0

Installation

  1. In the environment that youre in, whether pip or pipenv, run the following command.
Terminal window
pipenv install djangorestframework

remember to replace pipenv with the actual package youre doing

  1. After, go to your settings.py file and then add django rest framework in the list of installed apps. see below
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework',
'playground',
'debug_toolbar',
'store',
'tags',
'likes'
]

That’s all you need to get started with DRF