It's time to build the frontend of our smart contract. Previously, in Chapter 7, Frontend Decentralized Application, and Chapter 9, Cryptocurrency Wallet, we have created a desktop application using Qt for Python or the Pyside2 library. This time we are going to build a web application using the Django library:
- Without further ado, let's install Django:
(videos-venv) $ pip install Django
- We also need the OpenCV Python library to get the thumbnail of our videos:
(videos-venv) $ pip install opencv-python
- Now let's create our Django project directory. This will create a skeleton Django project with its settings files:
(videos-venv) $ django-admin startproject decentralized_videos
- Inside this new directory, create a static media directory:
(videos-venv) $ cd decentralized_videos
(videos-venv) $ mkdir static media
- Still...