Django is a Python-based free and open-source web framework, which follows the model-template-view architectural pattern.
In this lab we will be downloading Django and Django REST framework using the following commands:
$ pip3 -V
$ sudo pip3 install -U setuptools
$ sudo pip3 install -U django
$ sudo pip3 install -U djangorestframework
$ sudo pip3 install -U django-filter
$ sudo pip3 install -U markdown
$ sudo pip3 install -U requests
In the next part of the lab, I will be installing MariaDB server and client.
MariaDB Connector/Python enables python programs to access MariaDB and MySQL databases, using an API which is compliant with the Python DB API 2.0 (PEP-249). It is written in C and uses MariaDB Connector/C client library for client server communication.
Following commands were entered:
$ sudo apt update
$ sudo apt install mariadb-server mariadb-client
$ sudo apt install python3-mysqldb
$ sudo pip3 install -U mysqlclient
$ sudo mysql_secure_installation
Process and system utilities installation:
$ sudo pip3 install -U psutil
Adafruit_Python_DHT library
$ git clone https://github.com/adafruit/Adafruit_Python_DHT.git
$ cd Adafruit_Python_DHT
$ sudo python3 setup.py install
$ cd
Adafruit_Python_BMP library
$ git clone https://github.com/adafruit/Adafruit_Python_BMP.git
$ cd Adafruit_Python_BMP
$ sudo python3 setup.py install
$ cd
Adafruit_Python_ADXL345 library
$ git clone https://github.com/adafruit/Adafruit_Python_ADXL345.git
$ cd Adafruit_Python_ADXL345
$ sudo python3 setup.py install
$ cd