Skip to main content

Introduction to Django

Introduction to Django
Hello. Welcome to another session on this platform. If you are new here, please do checkout our previous articles on python programming language and stay excited on this session. we are entering into one of python’s application called Django.
In this article, we are going to discuss the following:

  • What is Django
  • Why must we use Django 
  • A brief history of Django
  • Installation of Django
  • Popularity of Django

What is Django?

Python has so many framework application and Django happen to be one of them. Being a python-based-framework, it is used to quickly create web applications. 

When building websites, django provides similar ready-made components to handle user authentication, forms, a way to upload components.

Why use django?

  • Django is very fast. It takes applications from concept to applications very quickly
  • Django has thousand available packages in it when it is installed.
  • With django, we can launch web applications is a matter of hours.
  • Django is a highly is secured and helps developers avoid common security mistakes such as such as SQL injection and clickjacking. 
  • Django is very scalable that it can easily change from small scale to large scale projects 

Brief History of Django

In 2003, django was designed and develop by Lawrence journal, but was later released in the year 21 July 2005 under BSD license. The Django software foundation maintains its release and it recycle. The most recent version 3.2.4 was released in 2 June 2021.  

Installation of django

There are three ways of installing django in your system.

  • Installing an official release of django. The official release can be gotten from the website django official site (https://www.djangoproject.com)
  • Installing a version which is provided by your operating system 

And below are the steps to follow when using the third procedure.

If you already have python installed in your system, then it is easy to install django. Below are the steps to follow when installing django in your operating system.

Django can be downloaded from the python package called pip. So, let’s start by checking if pip has been installed. Pip is installed when installing python in your system.

Step 1: open the command and type the following py -m pip –version

Introduction to Django

Indicating that pip has been installed.

Step2: open the command and type the following py -m pip install “django”

Introduction to Django

This shows that we have install django in our system.

Verifying

To verify that django can be seen by python, we open the IDLE 

Introduction to Django
Popularity of Django.
Due its simplicity, django is used in most known websites such as
  • Instagram
  • Mozilla
  • Disqus
  • Pinterest
  • Bitbucket
  • The Washington Times

Hope this article on the introduction of django got you excited about working with it. See you in the next article and stay tune to this platform. Have a nice day coding guy.

Comments

Popular posts from this blog

Introduction to flask

Hello. Welcome to another session on this platform. If you are new here, please do checkout our previous articles on python programming language and stay excited on this session because we are entering into one of python’s web-based application called flask. In this article, we are going to see the following What is flask Prequistes Installation of flask in python Some of flask template engine. What is flask? Flask is one of python-based framework which is used to create web applications. Flight is a very light web framework. During installation, flask comes with pre-installed modules and functions which are used to backup your own web applications. Flask is very easy to understand and perfect go-to for beginners and with flask, a web server can run in less than 3 lines of code. Prequistes Before learning flask, we recommend the reader to have a basic mastery of python concepts. Installation of flask  Before installing flask, we have to checked if python has been installed or. If n...

How to generate random numbers using NumP1

Hello. Welcome to another edition on this platform. For more better understanding, do checkout our YouTube channel to get the video tutorial. In this article of today, we are going to see how to generate random numbers using any of the following methods: Generating a random number Generating a random float and integer Generating random number arrays Generating random number from an array What is a random number? This is a number which cannot be predicted before its occurrence. This number might not different every time. Programmatically, they are two categories of random numbers:     Pseudo-Random numbers       True Random numbers. Just as programs which are written by programmers are a set of instructions, we must follow an algorithm to generate random numbers. Random numbers which are generated using an algorithm are called Pseudo-Random numbers. To generate a true random number, it is important to get the data from sources such as the keyboards, mou...