In this article, we learn a basic introduction to Django. I will cover all these features in this article:
- What is Django?
- History of Django
- Django Design Philosophies
- Advantage of Django Framework
- MVC Pattern
- Conclusion
What is Django?:
Django is a web development framework that helps in making and providing quality web applications. Django assists eliminate repetitive tasks making the development process an easy and time-saving experience.
Django is a high-level Python web framework that supports quick development and clean, logical design. Easily build web apps quickly with less code in the Django framework.
Django is a listed trademark of the Django Software Foundation and is certified under BSD License
History of Django:
- In 2003 Adrian Holovaty (AH) and Simon Willison both worked as an internal project at the Lawrence Journal-World newspaper.
- In July 2005 Released the Django name, after the jazz guitarist Django Reinhardt.
- In 2005 Managing and handle several high-traffic websites.
- Current Django is now an open-source web framework with providers across the world.
Django Design Philosophies:
Django has many design philosophies. Some of the listed below and explain each:
- Less coding less code so in turn a quick development.
- Fast Development Django can facilitate fast development.
- Loosely Coupled Django objects to make each element of its stack independent of the others.
- Clean Design Django exactly maintains a clean design throughout its own code and makes it easy to follow the best web development.
Advantage of Django Framework:
Here are some advantages of Django, which can be listed out here:
- Multilingual Support: Django supports multilingual so you can develop your website with support in multiple languages.
- Framework Support :Django has built-in support for Ajax, RSS, Caching and various other frameworks.
- Admin Graphic User Interface (GUI): Django provides a user interface for administrative activities.
- Object-Relational Mapping (ORM) Support: Django provides a connection between the model and the database and supports a large set of database systems including MySQL, Oracle, Postgres, etc. Django also supports a NoSQL database. For now, the only NoSQL databases supported are MongoDB and Google app engine.
- Development Environment: Django lightweight web framework to facilitate end-to-end application development and testing.
As you already know, Django is a web Python-based framework. And like most modern frameworks, Django supports the MVC pattern. First, let's discuss what is the Model-View-Controller (MVC) pattern, and then we will look at Django’s specificity for the Model-View-Template (MVT) pattern.
MVC Pattern:
When talking about applications that provide UI (web or desktop), we usually talk about MVC architecture. And as the name suggests, the MVC pattern is based on three components: Model, View, and Controller.
The MVT is somewhat different from MVC. In fact the main difference between the two patterns is that Django itself takes care of the Controller part (Software Code that controls the interactions between the Model and View), leaving us with the template. The template is a HTML file mixed with Django Template Language (DTL).
Conclusion:
Hence we conclude that learn basic understanding of Django and how Django framework work. Next I will cover how to setup the environment of Django and create a first application.