Introduction of Django

 

Django

Django is a Web framework (a software framework that is designed to support the development of web applications including web services, web resources, and web APIs.) software of Python.


·         Principle is “Don’t Repeat Yourself” which means keeping the code simple and non-repeating. 

·         Django based on high-level, MVT (Model View Template) architecture.

 

·         The MVT (Model View Template) is a software design pattern. It is a collection of three important components Model View and Template. The Model helps to handle the database.

 

·         It supports the of dynamic Web sites, applications, and services development.

 

·         In Web development:- provide security features, database access, sessions, template processing, URL routing, internationalization, localization, etc.

·         It also provides a standalone Web server for development and testing, caching, a middleware system, an Object-Relational Mapper (ORM), a template engine, form processing, an authentication system, an administrative interface with automatically generated pages for CRUD operations (create, read, update, and delete in the database), generation of syndication feeds (RSS/Atom), Geographic Information System (GIS) framework, sitemaps and interfaces with Python’s unit testing tools.

·         Sponsored by companies like JetBrains and Instagram.

·         Django is used by many popular sites like as Disqus, Instagram, Knight Foundation, MacArthur Foundation, Mozilla, National Geographic, Pinterest, Bitbucket, The Washington Times, etc.

 

Features of Django

  • Rapid Development
  • Secure
  • Scalable
  • Fully loaded
  • Versatile
  • Open Source
  • Vast and Supported Community

 

Rapid Development

Make a framework for web applications in less time (rapidly).

 

Secure

Helps developers to avoid many common security mistakes, such as SQL injection, cross-site scripting, cross-site request forgery, etc. Its user authentication system provides a secure way to manage user accounts and passwords.

 

Scalable

Ability to quickly and flexibly switch from small to large-scale application projects.

 

Fully loaded

Provides various helping task modules and libraries for handling common Web development tasks such as user authentication, content administration, site maps, Really Simple Syndication (RSS) feeds, etc.

 

Versatile

Build applications for different-different domains like content management systems, social network sites or scientific computing platforms, etc.

 

Open Source

Publicly available without cost. It can be downloaded with source code from the public repository. Open source reduces the total cost of application development.

 

Vast and Supported Community

A widely supportive community and channels to share and connect.

 

Django Architecture 

·         Django follows an MVC- MVT (Model View Template ) architecture. MVC stands for Model View controller.

·         It is used for developing web publications, where we break the code into 3- segments Model, View, and Controller.



Model – The model is used for storing and maintaining your data. It is the backend where the database is defined.

Views – views are in HTML. View provides presentation.

Controller – The controller is a business logic that will interact with the model and the view.



The template is a front end that interacts with the view and the model is used as a backend. View is used to access both the model and the templates and maps as URLs. Django performs the role of controller and serves.

================================================================================== 

Post a Comment

0 Comments