July 2018
Intermediate to advanced
324 pages
8h 14m
English
To integrate the Django REST Framework, you can simply install it using the pipenv packing tool, as mentioned in the previous section on setting up the virtual environment. Once you are done with the installation part, you can proceed to add the rest_framework in your INSTALLED_APPS settings. Take a look at this code:
INSTALLED_APPS = ( ... 'rest_framework',)
If you want to use the Web Browsable API along with the login and logout view, then you can add the following URL pattern in your root urls.py file:
urlpatterns = [ ... url(r'^api-auth/', include('rest_framework.urls'))]
That's it! Now we have successfully integrated the Django REST Framework and we can move on to creating the REST API. Before creating ...
Read now
Unlock full access