PROGRAMMING TUTORIAL How to Install Django Framework on Windows, Linux, and MacOS

Django is one framework that is often used in making a website . Unlike Laravel, Codeigniter, Spring, and other frameworks , Django is a Python-based framework that emphasizes the perfection, ease, and speed of data processing on a website which is certainly very helpful for users.

Here's how to install Django framework on Windows, Linux, and MacOS:

1. First, make sure that Python is installed in your operating system. To be sure, enter the Command Prompt or Terminal on the operating system (in Windows, please press the WIN + Rbutton and type cmd.

For Linux & MacOS you can find the application by typing Terminal in the search field , or by right-clicking the mouse button , selecting the Run Terminal option and then typing python.

To install Django by default (the latest version), then in Command Prompt or Terminal, enter the following command:

1

pip install Django

If we want to use a particular version of Django, then enter the following command:

1

pip install Django==2.0.7

And, if we want to use the Django version that is still in the development stage, then enter the following command:

1

pip install--pre Django

2. Wait a few moments until the installation process is successful. If so, information will appear that the installation process has been completed, as well as notifications that Django has been installed.

3. To determine whether Django is actually installed into our operating system, the next step is to open a python application in the Command Line or Terminal. Then, enter the following command:

1

2

importdjango

print(django.get_version())

4. Later, Django will give us information in the form of the version of Django that we use. Of course, this verification is enough to tell you that Django is ready to be used into our operating system.

That is the discussion given in this article. Hopefully the information provided can be useful for the readers. The hope is that this information can be disseminated widely in order to educate other readers who are interested in this information.