Getting ready

First of all, install the Django REST Framework in your virtual environment using the following command:

(env)$ pip install djangorestframework==3.11.0

Add "rest_framework" to INSTALLED_APPS in the settings.

Then, enhance the music app that we defined in the Importing data from a local CSV file recipe. You will also want to collect the static files provided by the Django REST framework for the pages it provides to be as nicely styled as possible:

(env)$ python manage.py collectstatic
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.125.219