WHAT IS DJANGO

Django is a free open source high-level Python web framework that enables the rapid development of secure and maintainable websites. Django has everything needed to build a robust framework. it provides a set of tools and functionalities that solves many common problems associated with web development, such as database access, URL routing, security feature, template processing, and much more.

HISTORY OF DJANGO
Django was developed by LAWRENCE JOURNAL WORLD in 2003 and publicly released under a BSD license in July 2005. Django maintained by the"Django software foundation(DSF)", an American independent organization established as non-profit.

Django install - pip install Django
Django Structure
  • URLs (urls.py) -  This file like a router that uses for redirect webpage. The URL mapper can also match particular patterns of string or digital that appear in URL and pass these to a view function as data.
  • Models (models.py) - This file contains the structure of the database for your application. This will be the blueprint of our database design and attribute constraints.
  • View (view.py) - This file is responsible for whats user look. It contains a code of how your project looks like. It is represented by HTML/CSS and javascript.
  • Templates(templates.py) - A template is a text file defining the structure or layout of a file.

Post a Comment

1 Comments