My Blog

My WordPress Blog

My Blog

My WordPress Blog

Day: September 24, 2024

MVT Architecture

Most of the web frameworks implement the MVC (Model-View-Controller) architecture. Django uses a variation of MVC and calls it the MVT (stands for Model-View-Template) architecture. The Advantage of Using a Web Framework A software framework, in general, is a standard, reusable software platform that facilitates rapid development of software applications. In contrast, a web framework (also called […]

Template System

Django makes it possible to separate python and HTML, the python goes in views and HTML goes in templates. To link the two, Django relies on the render function and the Django Template language. The Render Function This function takes three parameters − Django Template Language (DTL) Django’s template engine offers a mini-language to define […]

Index Page

When a new Django project is created with the startproject command, the URL http://localhost:8000/ shows a default index page. It shows that the Django installation is done successfully. Create a project with the following command − Now that your project is created and configured, make sure it’s working − On running the above command, you will get to see […]

Environment

Django development environment consists of installing and setting up Python, Django, and a Database System. Since Django deals with web application, it’s worth mentioning that you would need a web server setup as well. Step 1 – Installing Python Django is written in 100% pure Python code, so you’ll need to install Python on your […]

Scroll to top