Monday, July 5, 2021

Django - Introduction & Install django and PyCharm CE

 Introduction:

"Django is a high-level Python web framework that enables rapid development of secure and maintainable websites. Built by experienced developers, Django takes care of much of the hassle of web development, so you can focus on writing your app without needing to reinvent the wheel. It is free and open source, has a thriving and active community, great documentation, and many options for free and paid-for support. "

Where did it come from?

"Django was initially developed between 2003 and 2005 by a web team who were responsible for creating and maintaining newspaper websites. After creating a number of sites, the team began to factor out and reuse lots of common code and design patterns. This common code evolved into a generic web development framework, which was open-sourced as the "Django" project in July 2005. "


Django MVT

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 database. It is a data access layer which handles the data.
  • The Template is a presentation layer which handles User Interface part completely.
  •  The View is used to execute the business logic and interact with a model to carry data and renders a template.


Here, a user requests for a resource to the Django, Django works as a controller and check to the available resource in URL. If URL maps, a view is called that interact with model and template, it renders a template. Django responds back to the user and sends a template as a response.


Install Django:

go to the windows power shell and run the following cmd:

pip install django

Check installed django version:

python -m django --version

3.2.5

Check python version:

python --version

Python 3.9.5

Install PyCharm CE:

go to the browser and search with PyCharm download and go to the 1st one Jetbrains.com download PyCharm community edition. It will download around 366MB space.





No comments:

Post a Comment

Featured Post

End to End Securing Data in Oracle Integration Cloud (OIC) with OCI Vault: AES for Encryption & Decryption & RSA for Signing and verification | Implement message-level encryption in Oracle Integration using OCI Vault

Scenario: A company is integrating Oracle Integration Cloud (OIC) with an external financial system to exchange sensitive payroll data secur...