Django is a web framework built on python which is completely free and open source. What a web framework basically does is make it easier for a web developer to start building the website from scratch. It provided pre-made components, which almost all websites require – a management panel, a sign-up page etc.
In simple words :
Frameworks exist to save you from having to reinvent the wheel and to help alleviate some of the overhead when you’re building a new site
Most web developers start out and use Django because:
- It is one of the most high-level web frameworks and provides a clean cut developer experience.
- Django is written in Python, one of the easiest to learn programming languages with short, crisp syntax
How to Install Django
Django is a python based framework, thus, we need to first install Python.
Head to the official python webpage: Python and download the latest version for your OS.
While installing, click on custom installation, the following dialogue box will appear:
Make sure that install pip is checked in the custom installation.
Pip or easy install makes it very simple to install any new programs or frameworks on top of python, in our case, Django.
Open a terminal or PowerShell window.
Change the directory (CD) to the folder where you have installed python and then to Python/Scripts. Here, type in the following command in the terminal or PowerShell window :
pip install Django
This instructs command line to call upon pip and then passes the command ” install Django” to pip. Wait for the installation to complete.
Voila! Django is installed and running on your local system.
I too am currently learning Django. Not from any one resource, but from multiple of them. If the response is good enough, I would like to continue this tutorial and write more about Django.