- Django RESTful Web Services
- Gaston C. Hillar
- 242字
- 2021-06-30 19:30:54
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 django Collecting pytz (from django) Installing collected packages: pytz, django Successfully 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 toolkit to build RESTful Web Services. We just need to run the following command to install this package:
pip install djangorestframework==3.6.4
The last lines for the output will indicate that the djangorestframework package has been successfully installed, as shown here:
Collecting djangorestframework Installing collected packages: djangorestframework Successfully installed djangorestframework-3.6.4
After following the previous steps, we will have Django REST framework 3.6.4 and Django 1.11.5 installed in our virtual environment. We will install additional packages as we need them in the forthcoming chapters.
- Boost程序庫完全開發指南:深入C++”準”標準庫(第5版)
- Spring 5企業級開發實戰
- 精通Scrapy網絡爬蟲
- .NET 3.5編程
- Java實戰(第2版)
- Building Wireless Sensor Networks Using Arduino
- Mastering ArcGIS Enterprise Administration
- Learning VMware vSphere
- 單片機原理及應用技術
- 算法圖解
- Practical Predictive Analytics
- 從零開始學Unity游戲開發:場景+角色+腳本+交互+體驗+效果+發布
- Python數據科學實戰
- Java無難事:詳解Java編程核心思想與技術
- Spark Streaming技術內幕及源碼剖析