how to download and install Django rest framework?

0 votes
I am new to python’s framework Django. I am facing difficulties in installing Django rest framework. Can anyone please write the proper steps with an explanation? Thanks.
Apr 24, 2018 in Python by anto.trigg4
• 3,440 points
358 views

1 answer to this question.

0 votes

To install Django, you can simply open your command prompt and type:

Pip install djangoframework

Next, if you want to add the rest functionality to it, go to the setting and under “INSTALLED_APPS” , type the below command:

INSTALLED_APPS = (

‘rest_framework’,

)

In case you want to know more about Django rest framework, you can refer this video: https://youtu.be/ejJ-2oz4AgI

answered Apr 24, 2018 by Christine
• 15,810 points

Related Questions In Python

0 votes
1 answer

How to secure APIs for Registration and Login in Django Rest Framework?

Hello @kartik, you cannot have an authentication system ...READ MORE

answered Jun 25 in Python by Niroj
• 36,140 points
37 views
0 votes
1 answer
0 votes
1 answer

How to return custom JSON in Django REST Framework?

Hello @kartik, There are 2 ways to custom ...READ MORE

answered Jun 25 in Python by Niroj
• 36,140 points
74 views
0 votes
1 answer

How to PATCH a single field using Django Rest Framework?

Hello @kartik, Serializers allow partial updates by specifying partial=True when initializing ...READ MORE

answered Jun 25 in Python by Niroj
• 36,140 points
55 views
0 votes
1 answer

How to add annotate data in django-rest-framework queryset responses?

Hello @kartik, The queryset returned from get_queryset provides ...READ MORE

answered Jun 25 in Python by Niroj
• 36,140 points
63 views
0 votes
1 answer
0 votes
1 answer

Host not allowed

Go to your project directory cd project cd project ALLOWED_HOSTS ...READ MORE

answered Aug 9, 2018 in AWS by Priyaj
• 57,530 points
459 views
0 votes
1 answer
0 votes
1 answer