How Django Works?

Django is a high-level Python web framework that follows the Model-View-Template (MVT) architectural pattern. It is designed to help developers build clean, secure and scalable web applications quickly. How Django…

How Cross-Site Request Forgery (CSRF) token works?

CSRF Protection in Django Django includes built-in CSRF protection using middleware (django.middleware.csrf.CsrfViewMiddleware) which is included in the settings.py file of a django project. When a user loads a page with…

Project – Arithmetic Calculator

HTML file: mycalc.html <!-- my_calc.html Author: VBhat --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>VBhat's Simple Calculator</title> <link rel="stylesheet" href="calc_style.css"> </head> <body style="background-color:white;"> <div class="calculator">…

CSS – Property display: flex

Flex box layout. .container{ display: flex; justify-content: center; align-items: center;} 1. display: flex; Enables Flexbox for the element. Makes child elements (flex items) automatically adjust based on the flex container's…