Installing Django and Django REST frameworks in an isolated environment
We have created and activated a lightweight virtual environment. It is time to run many commands that will be the same for either Linux, macOS, or Windows.
First, run the following command to install the Django web framework:
pip install django==1.11.5
The last lines of the output will indicate that the django
package has been successfully installed. The process will also install the pytz
package that provides world time zone definitions. Take into account that you may also see a notice to upgrade pip
. The next lines show a sample of the four last lines of the output generated by a successful pip
installation:
Collecting djangoCollecting pytz (from django)Installing collected packages: pytz, djangoSuccessfully installed django-1.11.5 pytz-2017.2
Now that we have installed the Django web framework, we can install Django REST framework. Django REST framework works on top of Django and provides us with a powerful and flexible...