Adding web applications to your website can greatly enhance the functionality of your site and drive engagement from your audience as they find new reasons to visit. Beyond this, having an understanding of how to create a web app is a fantastic skill to have; not only will this allow you to tailor an app to a specific purpose, but it’s also a great thing to have on a resume. In this article, I’ll teach you how to create a web application with the Python framework called Django. Django is a high-level Python Web framework that is both free and open source.
Ideally, you have already installed Python on your device. If you have not yet done this then you can go to Python.org to download the latest version. To check if you are running the latest version of Python you can run the following command in your terminal/command line:
$ python
It would help if you ended up with something similar to this:
Python
[GCC 4.x] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
To install Django, you need the Python package manager PIP. You can download it on the PIP website. When you have a stable installation of PIP on your device, you need to install Django using the following command:
$ python -m pip install Django
Now Django will be installed to your Python installation. To verify that you have installed Django successfully, open up the Python terminal and import Django:
$ Python
>>> import django
>>> print(django.get_version())
And as I am running version 3.1 I will get the following output:
3.1
#django #web-development #python