What is Django?
What is Django : Django is an free open source, web framework. Django was created in the fall of 2003. It is written in python and follows MVT ( Model, View , Template ) architectural pattern.
It is an high level python framework, designed to create rapid web-applications from concept to completion as quickly as possible. Now a days, various websites built in Django including Pinterest, Instagram, Bit Bucket and more.
It solves various problems and handles user’s code. We can connect front-end to the backend using this framework. There is also an good written documentation for django, for more details you can check on the official Django docs on https://www.djangoproject.com/ .
The name Django comes from the guitarist Django Reinhardt.
Why we need Django?
As we know that python is an powerful and easy programming language. To make programming more easier, we need an framework. So know the question arises that what is an framework. Framework designed to make development faster and easy. They contains a set of predefined modules and functions that we just need to call and use rather than to create.
Django follows the statement “Don’t Repeat Yourself”. It means it avoids the duplication(repetition) of code and fast leads to fast development. So instead of writing all code yourself, Django provides various code modules and libraries, that makes a website more easier and faster to create.
Features of Django
Here are common features of Django:
- Fast web development
- Automatic Administration Interface
- Support Object Relational Mapper
- Code Reusability
- Various built in Modules
- Handles JSON, XML conversion
- Structured and Light-weighted etc.
How Django Works?
Here, i just give you an brief idea of how Django works. Here is the simple discussion, the way how Django works:
- An user requests a web page(send request)
- Server receives the request and then it will ask from Django
- In the request there will be an address of requested page. Django will matches this address to all addresses which it contains just like as an postman.
- This process is done by the Django’s URL resolver.
- The Django view will return the requested page if found otherwise 404 message.
- Then this page will served to the user
The above discussion is just let you know the basic idea of how Django works. I have mention above, that Django is an MVT system. If you want to learn Model View Template, visit the link below. Thanks!!!