What is Django?

What is Django?

Django is a free and open-source web application framework, written in Python. A web framework is a set of components that help you develop an easier and faster website.

When we are building a website, we always need a similar set of components: a way to handle user authentication (signing up, signing in, signing out), a management panel for our website, forms, a way to upload files, etc.

Django is one of them that will provide ready-made components to use for developing web applications.

Frameworks exist to save you from having to reinvent the wheel and to ease some of the overhead when you're building a new site.

Why do we need a Framework?.

To understand what Django really is, we should take a more intimate look at the servers. The first thing that the server needs to know is that we want a web page to serve you.

In a complete perspective, the answer to this question is we use frameworks because:

  • It will decrease effort
  • To manage core language principles.
  • Can only deal with the purpose of that framework you cannot use it for everything
  • We can still combine anything easily through the built-in API of that framework.

Let us imagine a mailbox that is controlled for incoming letters. This is done by a web server. The web server reads the letter and then sends a response with a web page. But when we want to send something, we need to have some content. And Django is something that helps you create content.

What happens when someone requests a website from a server?

When a request comes to a web server, it is passed to Django, which tries to decide out what is really requested. It uses a web page address first and tries to figure out what to do for this. This is a part done by the Django URL resolver. It is not very smart – it takes a list of patterns and tries to match the URL. Django match patterns from top to bottom, and if something is matched, then Django passes the request to the associated function (which is known as a view).

Imagine a mailman with a letter. She walks down the street and checks the number of each house with that of the letter. If it matches, she puts the letter there. This is how URL resolver works.

Example of using Django 

  1. Disqus :- It allows you to implement comments and discussion options on your site, analyze audience activity and customize ad delivery. Using the Django framework, it allows the team to not only create the website quickly, but to keep scaling it for millions of new users.
  2. Instagram :- It is the most famous and fast-growing social networks, Instagram is another example of a website built with Python+Django
  3. Spotify :- Like iTunes, Spotify changed the way people listen, share and buy music. By using it, we can access music library from anywhere and on any device.
  4. Youtube :- The site that clearly needs no introduction. It was first created with PHP, but the rapid growth of the audience and the need to implement new functions quickly led the team to join the Django community.
  5. DropBox:-  It is  most popular cloud-based storage app for documents, video, graphics, and so on. We can access our files anywhere and from any device

Related Topics

Django Image Upload

Django is a python based web framework that uses Model View Template as its architecture. Django provides really quick web development with its functionalities. While we are building a website,...

3 minutes read.

Life Cycle of Django

Life Cycle of Django Request - Response life cycle in Django  Thebasic principle of http protocol is the client sends a request to the server based on the request data, and the server sends...

3 minutes read.

Django Stack

Django is a popular Python web application framework that adheres to the "batteries-included" tenet. Batteries-guiding included idea is that common functionality for creating web applications should be provided with the...

5 minutes read.

Django Messages

Django Framework Django is a framework that can make web applications more accessible and faster. Django is an open-source collection of python libraries, and Django can be used for both the...

6 minutes read.

Uses of Django

Django is a free and open-source Python-based web framework, which offers great functionalities to its users. Django was developed in 2003, and the final version was released in 2008 by...

3 minutes read.

Django Model Fields

In Django, if we want to store the information about anything, we use Models. It contains various fields about the data. Generally, each model represents a database where all the...

4 minutes read.

Django CMS vs WordPress

Both Django CMS and WordPress belong "Self-Hosted Blogging" or "Content Management System (CMS)" category, that is used to manage digital content. Bloggers usually use these platforms. Django CMS Django is one of...

4 minutes read.

Features of Django

Features of Django Offers High Security:- Django is super secure. To prove the feature, we can always take examples of lots of websites which are present worldwide and possess huge traffic. Django is secure because it covers the...

3 minutes read.

Django vs Laravel

Django Overview Django is a Python Programming Open Source framework for web development. It was released in 2008 and was developed by two web developers named Adrian Holovaty and Simon Willison....

4 minutes read.

Django – Sending E-mails

Django – Sending E-mails Django comes with a light engine that is ready and simple to use to send emails. Similar to Python, you just need to import a smtplib. You just need to import django.core.mail in Django. Edit the project settings.py file to start sending emails and set  all the following options: EMAIL_HOST – server with smtp.EMAIL_HOST_USER – smtp server login key.EMAIL_HOST_PASSWORD ? Password credential for the smtp server.EMAIL_PORT – server port smtp.EMAIL_USE_TLS or _SSL – if it is secure connection then set True. Simple E-mail Sending To submit a simple e-mail, let's create it a "simpleEmail" view. from django.core.mail import...

3 minutes read.

What is Django?

What is Django? Django is a free and open-source web application framework, written in Python. A web framework is a set of components that help you develop an easier and faster website. When we...

3 minutes read.

How to Implement Multiple User Types with Django

Django Framework: Django is a framework that can make web applications more accessible and faster. Django is an open-source collection of python libraries, and Django can be used for both the...

3 minutes read.

Django Project

Django Project Let's start to use it. Each web app you want to build in Django is called a project; and a project is a collection of apps. A software is a series of...

3 minutes read.

Django CMS

Django is one of the most popular open-source Python web development framework. Developers use Django to build a website from scratch. Like WordPress, Django CMS is also a Content Management...

9 minutes read.

Django Create Project

Django is an open-source free to use web framework which is based on Python. Django uses Model-View-Template as its architecture. The final version of Django was released in 2008. Django...

4 minutes read.

Django Pagination

Django is an open-source free to use python based web framework. Django provides many inbuilt tools for web developers to provide rapid web development. One of these tools is pagination....

4 minutes read.

Django Template System

Django Template System Django allows Python and HTML to be divided, the Python goes into views, and HTML goes into templates. Django relies on the render feature and the language of the Django Model...

5 minutes read.

Django ORM

Django is a Python web framework that enables easy and quick web development. Django has a handy and powerful feature called Django Object Relational Mapper, also known as Django ORM,...

3 minutes read.

Django Tutorial

Django Introduction It is a web application framework written in a python programming language. It based on the MVT( Model View Templet) design pattern. It takes a short time to build an application...

2 minutes read.

How to Uninstall Django from cmd

Python is an interactive and more accessible language than any other programming language. The python programming language uses a variety of libraries to perform the operations in a faster way....

3 minutes read.