xxxxxxxxxx
Django REST framework is a powerful and flexible toolkit for building Web APIs.
Django REST framework is based on Django’s class-based views, so it’s an
excellent option if you’re familiar with Django.
It incorporates implementations for model validators, forms, class-based views,
QuerySet, and other things.
To install Django Rest Framework, you must have Python and Django
installed on your system. Here are the steps to install Django Rest Framework:
#Open a terminal window and enter the following command to install
Django Rest Framework using pip:
pip install djangorestframework
#Add 'rest_framework' to your INSTALLED_APPS list in your Django settings.py file:
INSTALLED_APPS = [
'rest_framework',
]
python manage.py migrate
for full process follow this site: -
https://biztechmaster.com/django-rest-framework-installation-with-crud-operation/
xxxxxxxxxx
pip install djangorestframework
pip install markdown # Markdown support for the browsable API.
pip install django-filter # Filtering support
xxxxxxxxxx
To install Django Rest Framework, you must have Python and Django
installed on your system. Here are the steps to install Django Rest Framework:
#Open a terminal window and enter the following command to install
Django Rest Framework using pip:
pip install djangorestframework
#Add 'rest_framework' to your INSTALLED_APPS list in your Django settings.py file:
INSTALLED_APPS = [
'rest_framework',
]
python manage.py migrate
for full process follow this site: -
https://biztechmaster.com/django-rest-framework-installation-with-crud-operation/
xxxxxxxxxx
(env) $ pip install djangorestframework
Collecting djangorestframework
Using cached djangorestframework-3.13.1-py3-none-any.whl (958 kB)
Requirement already satisfied: django>=2.2 in path\env\lib\site-packages (from djangorestframework) (4.0.5)
Collecting pytz
Using cached pytz-2022.1-py2.py3-none-any.whl (503 kB)
Requirement already satisfied: asgiref<4,>=3.4.1 in path\env\lib\site-packages (from django>=2.2->djangorestframework) (3.5.2)
Requirement already satisfied: sqlparse>=0.2.2 in path\env\lib\site-packages (from django>=2.2->djangorestframework) (0.4.2)
Requirement already satisfied: tzdata in path\env\lib\site-packages (from django>=2.2->djangorestframework) (2022.1)
Installing collected packages: pytz, djangorestframework
Successfully installed djangorestframework-3.13.1 pytz-2022.1
(env) $
xxxxxxxxxx
#command line
pip install djangorestframework
#settings.py
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework', #new
]