Through this tutorial, we will show you how to install and uninstall the django web framework in ubuntu 22.04 using terminal or command line.
How to Install and Uninstall Django Web Framework on Ubuntu 22.04 Terminal
Steps to install and uninstall django web framework in ubuntu 22.04 using terminal or command line:
- Step 1 – Update System Dependencies
- Step 2 – Install Django
- Step 3 – Verify Installation
- Step 4 – Uninstall Django in Ubuntu
Step 1 – Update System Dependencies
First of all, open command prompt and execute the following command on command line to update system dependencies:
sudo apt update
Step 2 – Install Django
Now, execute the following command on command line to install Django web framework on the ubuntu 22.04 system:
sudo apt install python3-django -y
Step 3 – Verify Installation
Once the Django installation has been done, execute the following command on the command line to verify Django installation on ubuntu 22.04 system:
django-admin --version
Step 4 – Uninstall Django in Ubuntu
To remove this installed package of Django use the purge command:
sudo apt purge python3-django -y
Conclusion
Through this tutorial, we have learned how to install and uninstall the django web framework on ubuntu 22.04.